First time here? Check out the FAQ!
answered 2016-06-17 10:19:25 -0600
Since your image has black edges against white background, you can try an erode operation which takes the minimum value of every block.