Page 1 of 1

Small Spots in images

Posted: 2012-05-01T18:19:17-07:00
by dmozca
Hi Everybody:

I need to clean some images, because those have it small spots in random parts of them, in the next example, red circles remarks those spots, this spots are smaller than any letter, somebody can help me?

thanks in advance...

David Pantoja.

Image

Re: Small Spots in images

Posted: 2012-05-01T18:34:57-07:00
by fmw42
You can try either median filtering or -morphology close or open (not sure which as it depends upon whether white on black or black on white), I alway try both to make sure which is correct. But I think for your image it is close.

see
http://www.imagemagick.org/Usage/morphology/

Re: Small Spots in images

Posted: 2012-05-02T09:54:28-07:00
by dmozca
Basically are black spots in white background, in tif images in two colors format, I understand Morphology option, but i can't understand how can i do it?

thanks

David.

Re: Small Spots in images

Posted: 2012-05-02T12:58:29-07:00
by fmw42
try this

convert example.jpg -morphology close disk:1 example2.png

or

convert example.jpg -median 5x5 example3.png