Remove image noise

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cathia
Posts: 2
Joined: 2012-04-08T03:08:02-07:00
Authentication code: 8675308

Remove image noise

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove image noise

Post 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
Post Reply