This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How To Use VLIB_goodFeaturestoTrack on C674

Other Parts Discussed in Thread: TMS320DM8127

Hi

I Use VLIB_goodFeaturestoTrack On C674 like code below:

  // Step 1
  VLIB_xyGradients(buffer,gradx+width+1,grady+width+1,width,height);

  // Step 2
  uint16_t k = 1310;
  memset(im,0,width*height*sizeof(uint16_t));
  VLIB_harrisScore_7x7(gradx,grady,width,height,(int16_t*)im,k,buffer);

  // Step 3
  memset(outTemp,0,width*height*sizeof(uint16_t));
  memset(out,0,width*height*sizeof(uint8_t));
  memset(pixIndex,0,(2*width*height+2)*sizeof(int16_t));
  memset(internalBuf,0,((2 * 7) + (width*height))*sizeof(uint16_t)); 
  memset(ind,0,(width*height)*sizeof(int32_t));
  int16_t thresh = 60000;
  uint8_t patch = 7;
  uint8_t qualitypar = 200;
  uint8_t mindist = 10;
  int32_t good_points_number=0;
 
  VLIB_goodFeaturestoTrack(im,
                           out,
                           width,
                           height,
                           thresh,
                           patch,
                           qualitypar,
                           20,
                           mindist,
                           outTemp,
                           &good_points_number,
                           pixIndex,
                           internalBuf,
                           ind);

 The Result (good_points_number) is 0.  Did I make some mistakes?

Maybe I Use the function not correctly.  Anyone Help Me? Thanks!