Ask Your Question

Revision history [back]

Since your image has black edges against white background, you can try an erode operation which takes the minimum value of every block.