Detect single line of same colour
Posted: 2014-02-18T12:50:17-07:00
Hello!
I'm aiming to make an image detection script that'll check rather large images and attempt to automatically find errors in them.
The most common sort of error is that a chunk of the image somewhere will have lines of black. This often creates large chunks of black. Needless to say, since these images are large (and scans) if there's a single monocolour line, changes are it's a bug.
How would I detect a horizontal line of single-coloured pixels in an image programmatically using ImageMagick?
I'm aiming to make an image detection script that'll check rather large images and attempt to automatically find errors in them.
The most common sort of error is that a chunk of the image somewhere will have lines of black. This often creates large chunks of black. Needless to say, since these images are large (and scans) if there's a single monocolour line, changes are it's a bug.
How would I detect a horizontal line of single-coloured pixels in an image programmatically using ImageMagick?