Ask Your Question

Revision history [back]

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