How to find the threshold value for this image?
조회 수: 8 (최근 30일)
이전 댓글 표시
I want to find the threshold value for this image..... but i don not know how..
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149892/image.jpeg)
댓글 수: 0
답변 (2개)
Salaheddin Hosseinzadeh
2015년 5월 7일
편집: Salaheddin Hosseinzadeh
2015년 5월 7일
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 ;)
댓글 수: 0
Image Analyst
2015년 5월 7일
Why not use my interactive thresholding app. I just uploaded an updated version today: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!