Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

how can i implement the global and adaptive local threshold on grayscale image in matalb?

Asked by mmm ssss on 31 Dec 2011

please ,how can i calculate the global and adaptive local threshold for the grayscale image using matlab ?


Naz on 31 Dec 2011

I have one algorithm that works good for images with relatively uniform background. For example, it would work great for contrasting images of eye retina. What kind of images do you need to work with?

mmm ssss on 2 Jan 2012

i have images for hand-dorsal veins.

is your algorithm will be suitable to these images or not?


mmm ssss


No products are associated with this question.

1 Answer

Answer by Image Analyst on 1 Jan 2012

There are a variety of ways to find a threshold, from the Otsu method (bwthresh) to the triangle method, to an interactive manual method that I've uploaded to


mmm ssss on 2 Jan 2012


i sent you a message ,and i will wait your reply.

Image Analyst on 2 Jan 2012

My email is just a spam catcher account. I can't reply or accept attachments. Post your image to Have you tried adpathisteq? After doing that you can use a global threshold but it would have the effect of a local threshold since the output image has its output value adjusted for every pixel.

mmm ssss on 5 Jan 2012

i posted image to

i tried also adapthisteq but the image still need processing.

Image Analyst

Contact us