I have a cv::Mat
A
, which has CV_32F
. However it holds integer values like 1,2....100. I want to form a mask of same size as A
.
But the mask must contain zeros if A(x,y) not equal to 5 (say). The mask must contain ones if A(x,y) equal to 5 (say).
I want to later use it as ROIs.