Trim noisy image
Posted: 2016-03-30T22:38:03-07:00
Hi, everyone!
I need to trim the white border from some grayscale (actually B/W) images. These are scans of paper pages (comix strips), and there are some noisy pixels that prevent a good trim with this "standard" ImageMagick command
As said, these are B/W images, so the "fuzz" parameter is quite useless (pixel values are 0 or 255).
Here is an example of input and trimmed image. Due to some noise on the border (need to zoom to view it) the trim algorithm fails (better, didn't meet my needs).
INPUT
OUTPUT
Any idea about how to trim the full border?
Thanks!
MIX
I need to trim the white border from some grayscale (actually B/W) images. These are scans of paper pages (comix strips), and there are some noisy pixels that prevent a good trim with this "standard" ImageMagick command
Code: Select all
convert input -bordercolor white -border 1x1 -fuzz 50% -trim +repage output
Here is an example of input and trimmed image. Due to some noise on the border (need to zoom to view it) the trim algorithm fails (better, didn't meet my needs).
INPUT
OUTPUT
Any idea about how to trim the full border?
Thanks!
MIX