how to delete the white pixel(255) from grey scale image
1 次查看(过去 30 天)
显示 更早的评论
I have to delete only 225 value white pixel from gray scale image. But i don't know how to identified each pixel from image and check if it is 255 and assign it's value to zero. Please help me
0 个评论
采纳的回答
Azzi Abdelmalek
2013-12-29
编辑:Azzi Abdelmalek
2013-12-29
im(im==255)=0
11 个评论
Image Analyst
2013-12-29
Why do you have both g and GRAY? You don't need two. And we're back to Azzi's original answer
g(g==255)=0;
GRAY(GRAY==255)=0;
Why didn't you follow his advice instead of doing things with for loops and two copies of the same image?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!