How to get bitwise_not of a Mat object in Java?

asked 2018-07-28 18:26:59 -0500

L0rdTachanka gravatar image

I ran into this issue when I was trying to use adaptive threshold to binarize an image. In C++, apparently, I can just do ~matObject and get the bitewise_not of matObject, But I can't seem to do it in Java. For example, Imgproc.adaptiveThreshold(~matObject, res, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, 10); would result in error. Please help!

edit retag flag offensive close merge delete