简体   繁体   中英

OpenCV Contours?

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

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

Cheers & hth.,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM