Ask Your Question

Revision history [back]

Equivalent OpenCV Java Code to this C++ Code

Whats are equivalent opencv java code to the blocks below?

floodFilled = cv::Scalar::all(255) - floodFilled;

and

Mat temp;

floodFilled(Rect(1, 1, dilateGrad.cols-2, dilateGrad.rows-2)).copyTo(temp);

floodFilled = temp;

Thanks