我发现Windows和Linux之间的drawContour行为存在一些差异:下面的代码在Windows上打印出一个填充的轮廓,这是我所期望的:
drawContours( imIn, contours, -1, color, CV_FILLED, 8 );但是在Linux上,轮廓被绘制但未填充。 我没有使用相同版本的OpenCV(Windows上为2.4.5,Linux上为2.4.0),但有人看到过类似的东西吗?
谢谢。
I find out some differences in drawContour behaviour between Windows and Linux : The following code prints we a filled contour on Windows which is what I expect :
drawContours( imIn, contours, -1, color, CV_FILLED, 8 );However on Linux, the contour is drawn but not filled. I am not using the same version of OpenCV ( 2.4.5 on Windows, 2.4.0 on Linux), but has somebody seen something similar ?
Thank you.
最满意答案
实际上,countours中的积分列表是不同的:它们都重复了一次(为什么我不知道)。 使用相同的输入,drawContours结果确实相同。
Actually, list of points in countours were differents : they were all repeated one time (why I don't know). With same inputs, drawContours results are indeed the same.
更多推荐
发布评论