OpenCV 轮廓?
我不断收到这部分代码的错误
&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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
&contours
是一个指针值。你不能分配一个值。例如,您不能分配给42
。干杯&呵呵,
&contours
is a pointer value. you can't assign to a value. e.g. you can't assign to42
.Cheers & hth.,