Effacer les filtres
Effacer les filtres

How to find the threshold value for this image?

14 vues (au cours des 30 derniers jours)
nurul hafizah
nurul hafizah le 7 Mai 2015
I want to find the threshold value for this image..... but i don not know how..

Réponses (2)

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh le 7 Mai 2015
Modifié(e) : Salaheddin Hosseinzadeh le 7 Mai 2015
Hey Nurul,
I am not sure what exactly you want to threshold, so here is a general solution.
Step1 : Convert this to grayscale image, either using rgb2gray() or other appropriate functions.
Step2 : Examine the histogram of the image using imhist(), and identify the threshold value.
Step3 : Just threshold it!
I hope it helps ;)

Image Analyst
Image Analyst le 7 Mai 2015
Why not use my interactive thresholding app. I just uploaded an updated version today: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by