Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Otsu thresholding with mask

Hi, It appears that Otsu threshold type in cv::threshold is taking the whole image into account when calculating a threshold value to use. Is there any easy way to get it to only calculate the threshold for the masked (non-black) areas of an image?

Thanks