Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I access each elements of an one contour?

i am new in OpenCV. I have the following problem. suppose I retrieve a contour from image. It is look like this: square[0] and the size of square[0] is [1×4]. suppose the elements are look like this: [2,3;4,5;6,7;1,2]

How can I access each element. As for example How can I retrieve only 2?

How can I access each elements of an one contour?

i am new in OpenCV. I have the following problem. suppose I retrieve retrieved a contour from image. It is look like this: square[0] and the size of square[0] is [1×4]. suppose the elements are look like this: [2,3;4,5;6,7;1,2]

How can I access each element. As for example How can I retrieve only 2?