Hello everyone.
We have a lot of images in a folder tha contain useless information.
For instance, images may or may not have a white border.
On these white border, there may or may not have noise (random noise, hand writed notes, etc.).
I'd like to get ridd of this noise, so I can make some valuable statistics (overhall image size, contrast, etc.).
How can I achieve that?
I thought that maybe I can cut after the 1st blank line I enounter (I can assume that any line that contain only pixels as (220,220,220) or lighter is a white line). But I don't know how to do that. I even don't know where to start.
Any ideas?
Thanks a lot.
Remove image noise
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Remove image noise
can you post links to a few example images and explain further what you are trying to do. Noise removal is usually done by something like -median or -morphology. Trimming excess border can usually be done by -trim.
see
http://www.imagemagick.org/script/comma ... php#median
http://www.imagemagick.org/Usage/morphology/#basic
http://www.imagemagick.org/Usage/crop/#trim
see
http://www.imagemagick.org/script/comma ... php#median
http://www.imagemagick.org/Usage/morphology/#basic
http://www.imagemagick.org/Usage/crop/#trim