Blur a (3x3) copy of your image and then compare the original image. The pixels with the highest values are those that differ from their neighbors. This can be used as an edge detection algorithm, but the dots are similar to super-borders, so set the threshold higher.
what a single off pixel looks like: (assume surrounding pixels are all 1) original blurred diff 1,1,1 8/9,8/9,8/9 1/9,1/9,1/9 1,0,1 8/9,8/9,8/9 1/9,8/9,1/9 1,1,1 8/9,8/9,8/9 1/9,1/9,1/9 what an edge looks like: (assume surrounding pixels are the same as their closest neighbor) original blurred diff 1,0,0 6/9,3/9,0/9 3/9,3/9,0/9 1,0,0 6/9,3/9,0/9 3/9,3/9,0/9 1,0,0 6/9,3/9,0/9 3/9,3/9,0/9
dtudury
source share