Retrieve data from CvSeq
Hello, I have a structure of the type CvSeq* and I want retrieve data from it. Each line is composed of N element The code is:
CvSeq *imageKeypoints = 0, *imageDescriptors = 0;
int i;
CvSURFParams params = cvSURFParams(500, 1);
cvExtractSURF( image, 0, &imageKeypoints, &imageDescriptors, storage, params );
for( i = 0; i < imageDescriptors->total; i++ )
{
CvPoint* r = (CvPoint*)cvGetSeqElem( imageDescriptors, i)}
CvPoint* gives me only 2 elements and y but the line is omposed with many elements. What could I put instead of CvPoint
Thanks
please you should no more use that kind of code. opencv moved away from C in 2010 already, and so should you.
also note, that this is no more available in newer versions of opencv, so you won't be able to maintain it in the future