drawContours linux和windows之间的差异(drawContours differences between linux and windows)

编程入门 行业动态 更新时间:2024-10-28 16:22:01
drawContours linux和windows之间的差异(drawContours differences between linux and windows)

我发现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.

更多推荐

本文发布于:2023-07-16 02:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1122188.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:差异   linux   drawContours   differences   windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!