remove the white object using filter2

 采纳的回答

Image Analyst
Image Analyst 2011-12-31
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 个评论

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)
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