Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

Assuming that this image is 1000x1000 pixels and is

using gray scale or black and white, and is one channel.

Have a box scan the image. Say 10 pixel by 10 pixels. All of the pixel values, inside the box are added up into a box value and saved with location x, y.

Comparing the box value with one another for the one that has the lowest box value, assuming that the scratches will be lighter and will cause a lower box value.

The box size may be too big or small and my need to adjusted, too small it will pick up the grains, too big it will pick up the glare. You might have to do the the scan up and down and left to right.

You can move the box one pixel at time for accuracy or 10 pixels for fast scan.

Lots of luck,

Keghn