remove the white object using filter2

 Risposta accettata

Image Analyst
Image Analyst il 31 Dic 2011

0 voti

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 Commenti

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.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by