Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 cv::Canny() 后,图像中似乎出现了一些非闭合曲线。所以我的问题是, cv::ContourArea() 将如何处理它们?先关闭曲线来计算面积还是忽略它们?
来自ContourArea参考:
计算轮廓面积
所以它只是计算轮廓的面积(如果图像不连续,则为像素数)。