how to delete the white pixel(255) from grey scale image
조회 수: 2 (최근 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!