i get the error at line below
Vertex2 = (CvPoint*)Vertices[I]; //where vertices is cvseq of contour and Vertex2 is cvpoint
i get error invalid cast from type ‘CvSeq’ to type ‘CvPoint*
how do i solve this
i get the error at line below
Vertex2 = (CvPoint*)Vertices[I]; //where vertices is cvseq of contour and Vertex2 is cvpoint
i get error invalid cast from type ‘CvSeq’ to type ‘CvPoint*
how do i solve this
Are you just trying to get the address of the element in the array? in which case you would go
cvseq* Vertex2 = &Vertices[i];
A pointer called Vertex2 of type cvseq pointer whose value is the address of element i in the array Vertices.
UPDATE:
Just to help you know exactly what is wrong with your code.
'CvSeq' to type 'CvPoint*'
This is saying the you have a varaible of type CvPoint* (that would be your Vertex2) and you are trying to assign data of the type CvSeq.