Retrieve data from CvSeq

asked 2016-03-02 10:50:09 -0500

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


edit retag flag offensive close merge delete


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

berak gravatar imageberak ( 2016-03-02 11:28:16 -0500 )edit