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.
Small Spots in images
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Small Spots in images
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/
see
http://www.imagemagick.org/Usage/morphology/
Re: Small Spots in images
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.
thanks
David.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Small Spots in images
try this
convert example.jpg -morphology close disk:1 example2.png
or
convert example.jpg -median 5x5 example3.png
convert example.jpg -morphology close disk:1 example2.png
or
convert example.jpg -median 5x5 example3.png