Ask Your Question

Revision history [back]

How do I know what values to set for the blockSize and constant parameters of adaptiveThreshold().

I am trying to find the contours of an image using the findContours() method. Firstly, I converted the image to grayscale, and then made it binary using the adaptiveThreshold() method. How do I know what values to set for the blockSize and constant?

Thanks.