To apply all methods on the image, just run "original.m".
p.s.Change image name for your image
Navid Razmjooy (2021). Image Thresholding: Classic methods (https://www.mathworks.com/matlabcentral/fileexchange/74510-image-thresholding-classic-methods), MATLAB Central File Exchange. Retrieved .
Useful but a tad awkward to deal with. The source is messy legacy with little to no helpful comments and seems cobbled together. I'm treating it as a black box and only throwing B/W uint8 images into it. What's come out so far seems reasonable. (I commented out a tic/toc in one routine and wtf is disp('hoi') supposed to mean in venherk.m?) I turned your original.m into a function that accepts an image and method and returns the binarized image and threshold value (if available). If 'all' is specified as the method it displays a figure with 3x4 subplots that includes the original, + (10 - 1) of your method outputs + Matlab's built-in Otsu + the Ridler-Calvard output that's somewhere on this site. A little cleaner than your 3x3 + 1 I think, and the first time I used subplots! Thanks for posting this, Jesse
If you could not find the image, you can replace any image for testing
Can not find image "melanoma superficial spreading.jpg" used in example
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!