remove the white object using filter2

 채택된 답변

Image Analyst
Image Analyst 2011년 12월 31일

0 개 추천

Define "remove." Do you want to extract the bounding box into its own image? If so, see my BlobsDemo http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Or do you want to set all pixels values of 255 to 0 or nan?

댓글 수: 2

Diah Mcfdz
Diah Mcfdz 2011년 12월 31일
i have image with RGB (1 1 1), RGB (0 0 0), RGB(0.478 0.478 0.478).how to eliminate RGB (1 1 1) from the image, so i only have image with RGB( 0 0 0) RGB(0.478 0.478 0.478)
Image Analyst
Image Analyst 2011년 12월 31일
Which color should the 1,1,1 pixels get set to? 0,0,0, or .478,.478,.478?
rgbImage(rgbImage==1) = 0; % Or 0.478 whichever you want.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by