How to convert False color Images to Black & White?
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have an Image and I wanted that to convert into BW. But when I use im2bw(), it is not showing the black & white image. I here by attach the image.
Thank you...
0 个评论
采纳的回答
Image Analyst
2014-6-3
I can't see the image. If you use rgb2gray() you probably won't get anything that makes sense. You really need to have the color map that was used to pseudocolor the image. If you have that you can recover the original gray scale image using
grayImage = rgb2ind(rgbImage, colorMap);
Then you can threshold that grayscale image to get a binary image. By the way, your image link is broken.
5 个评论
Image Analyst
2014-6-5
I'm not sure what you mean, but see my attached freehand masking demo and see if that does what you want.
更多回答(1 个)
pallavi awate
2017-3-14
hello sir, i have to count the object from the image.but their is some problem.when two object is too closed then it shows this is one object.now how i can solve this.please help me.can u send me the code for this.please please please..
1 个评论
Image Analyst
2017-3-14
The code would have to be optimized for your image(s), which you have not provided.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!