Home > Net >  Given the location of the pixels in the image coordinate point collection, continuous adjacent pixel
Given the location of the pixels in the image coordinate point collection, continuous adjacent pixel

Time:11-09

1: as shown in the position of pixel coordinate point collection, how to calculate the set continuous adjacent pixel number is greater than the set value, such as 6?
2: here is the communist party of China in 5 groups of pixels adjacent regions exist, continuous adjacent pixel number is 6;

CodePudding user response:

https://github.com/azsdaja/FloodSpill-CSharp
You can see, there are at least the source code, test, there is a performance benchmark,

CodePudding user response:

If it is a bunch of detection and maybe you first take a look at the opening and closing operation in image processing, I think it can screen out for target, can greatly accelerate the performance,
If it is the general cluster detection, can search image cluster analysis

CodePudding user response:

Is the most direct/heavy, point by point, using the floodfill algorithm, calculation of connection number of pixels that point,
  •  Tags:  
  • C#
  • Related