what should I do so that only gray image converts into binary , not the black backgroung while moving the threshold.
2 views (last 30 days)
Show older comments
Dear Image analyst , I have a gray image ( a selected ROI) displayed in a black background screen. I am trying to use your adjustable threshold method to convert this gray image into binary.while moving the threshold cursor to convert this gray image into binary image , the black background is also changing from black to white and is including into total pixel calculations and in histogram. But I want only my ROI to convert from gray to binary not the background.
0 Comments
Accepted Answer
Image Analyst
on 24 Jan 2014
Just change your thresholds. Instead of going from 0 to 150, go from 150 to 255. If that's not right, post a screenshot and describe it in more detail.
6 Comments
Image Analyst
on 1 Feb 2014
Edited: Image Analyst
on 1 Feb 2014
See attachments. Please accept my answer if I've helped you.
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!