How to find the threshold value for this image?

Respuestas (2)

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh el 7 de Mayo de 2015
Editada: Salaheddin Hosseinzadeh el 7 de Mayo de 2015

0 votos

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 ;)

Preguntada:

el 7 de Mayo de 2015

Editada:

el 7 de Mayo de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by