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
1 | initial version |
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