Page 1 of 1

Remove image noise

Posted: 2012-04-08T05:32:58-07:00
by cathia
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.

Re: Remove image noise

Posted: 2012-04-08T12:28:19-07:00
by fmw42
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