用EmguCv中的函数查找目标轮廓时只找到一个目标就停止了
使用Image<TColor,TDepth>类的FindContours方法。我先将彩色图像转换成灰度图像,然后再将灰度图像转换成二值图像Image<Gray, Byte> imageThreshold ,接下来Contour<Point> contour=imageThreshold.FindContours();时,只找到了右下角的一个目标的轮廓,而我想要所有目标的轮廓,是哪部分出问题了?望高手指点。还有如果使用CvInvoke.cvFindContours(IntPtr image, IntPtr storage, ref IntPtr firstContour, int headerSize, RETR_TYPE mode, CHAIN_APPROX_METHOD method, Point offset);函数,headerSize部分带入sizeof(CvContour)总是出错。 --------------------编程问答-------------------- --------------------编程问答-------------------- 为什么没有人理我呢?诚恳的向大家请教,希望给点意见~
补充:.NET技术 , C#