This method can search gray image to find all connected component, and it can give every connected component an unique mark Feature:
-
- Don't use recursion, so maybe it can handle any size of image in theory
-
- Search quickly by optimized search function, of course you may further optimize the algorithm
-
- Search 8 direction to determin the connected component