OpenCV 轮廓?

发布于 2024-12-08 08:17:42 字数 272 浏览 0 评论 0原文

我不断收到这部分代码的错误

&contours = ((contours.h_next) -> h_next);
contours.h_next = ((contours.h_next) -> h_next) -> h_next;

错误指出“需要左值作为赋值的左操作数”

有人知道我做错了什么吗?

PS:我现在无法发布完整的代码,抱歉

哦,轮廓不是指向序列的指针 - 它是一个实际的序列

I keep getting an error with this part of the code

&contours = ((contours.h_next) -> h_next);
contours.h_next = ((contours.h_next) -> h_next) -> h_next;

The error states "lvalue required as left operand of assignment"

Anyone know what I am doing wrong?

PS: I am not able to post the complete code right now sorry

Oh and contours isn't a pointer to a sequence - its an actual sequence

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妳是的陽光 2024-12-15 08:17:42

&contours 是一个指针值。你不能分配一个值。例如,您不能分配给42

干杯&呵呵,

&contours is a pointer value. you can't assign to a value. e.g. you can't assign to 42.

Cheers & hth.,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文