MATLAB: Anyone could help me with the Code matlab of “adaptive thresholding method” of an image

image processingImage Processing Toolbox

I searched for hours for the code of this method "adaptative thresholding" but didn't find anything. This method is based on the Otsu method but it is adaptative not global. Can anyone help me?

Best Answer

Another option may be to use adapthisteq() followed by a global Otsu with graythresh().