Description: Programming musings (mostly) on computer graphics, image processing, and computer vision.
Home About Posts Oct 16, 2017 Sudoku Solver AR Part 9: Canny Part 4 (Connectivity Analysis) This post is part of a series where I explain how to build an augmented reality Sudoku solver . All of the image processing and computer vision is done from scratch. See the first post for a complete list of topics.
It’s finally time to finish implementing the Canny edge detector algorithm. The previous step produced an image where strong and weak edges were detected. Pixels marked as strong edges are assumed to be actual edges. On the other hand, pixels marked as weak edges are considered to only “maybe” be edges. So the question remains, when should a weak edge actually be a strong edge? If you have a chain of strong edges connected to each other, then there is definitely an edge running along them. You could then re
Connectivity analysis is a very mathy term but is straight forward with respect to image processing. The whole idea is about examining groups of pixels that meet some requirement and are connected in such a way that you can move from any one pixel in the group to any other without leaving the group. Say you have a pixel that meets a certain criteria. Look at each of the surrounding pixels and check if it meets a criteria (could be the same as before but doesn’t have to be). If it does, the pixels are connec