我正在使用Aforge C#进行图像处理。如何计算图像中的斑点数量(黑色黑色斑点上的白色斑点)。图像有一个圆形的白色斑点(图像已经是二进制格式)。任何想法都将受到感谢。
发布于 2014-09-18 14:34:33
如果您仍在寻找答案,请尝试:
BlobCounterBase bc = new BlobCounter();
bc.FilterBlobs = true;
bc.MinWidth = N; //give required value or ignore
bc.MinHeight = M; //give required value or ignore
bc.CoupledSizeFiltering = true; // if value are given and if you want both Width and Height to be applied as a constraint to identify blob, set it to true
bc.ProcessImage(image);
Blob[] blobs = bc.GetObjectsInformation();blobs.Count会给你水滴的数量。
https://stackoverflow.com/questions/21577854
复制相似问题