I encountered the following while trying to convert some C++ code that uses OpenCV to Java. I'd like to know what the ~
operator does to the Mat object gradient_grown
in the following code and what's the Java equivalent to this?
Mat edge_enhanced_mser = ~gradient_grown & mser_mask;