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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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 ?

2 Comments

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?

thanks

mmm ssss

Products

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 http://www.mathworks.com/matlabcentral/fileexchange/29372-thresholding-an-image

3 Comments

mmm ssss on 2 Jan 2012

thanks

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 tinypic.com. 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 tinypic.com

http://tinypic.com/view.php?pic=5wh0lg&s=5

i tried also adapthisteq but the image still need processing.

Image Analyst

Contact us