Core.compare openCV
As per the openCV documentation it states that Core.Compare(Mat src1, Scalar src2, Mat dst, int cmpop)
Performs the per-element comparison of two arrays or an array and scalar value.
So in the above line what does comparison actually mean?
Like if we take an example with :
Mat source = new Mat(1, 1, CvType.CV_8U, new Scalar(3));
Mat mask = new Mat();
Imgproc.grabCut(srcImage,mask,rect,new Mat(),new Mat(),3,Imgproc.GC_INIT_WITH_RECT);
Core.compare(mask, source,mask, Core.CMP_EQ);
The above makes the mask to be in the visible form which can be seen as an image. So what did Core.compare actually do?