Click here to Skip to main content
15,889,570 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I have a trouble to find an appropriate threshold value to convert binary image
I've already tried to use graythresh() function to find it, but it was not good answer.
Even though I removed almost noise using smoothing, it exists noise. So i think the cause of this problem is noise

Is there any way to find an appropriate threshold value ? any recommendation?
help.
Posted

1 solution

No. There is no one common way to choose a threshold. Any value between 0 and maximum pixel value will work and give different results. What you chose solely depends on your criteria and input image, but you did not tell us what do you expect to get. As to the noise, this problem is not directly related. Transformation to B&W can only visually exaggerate noise (and, quite apparently, eliminate part of the noise by saturating it out). The noise is theoretically unavoidable.

—SA
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900