Forums - How to use "fcvTrackLKOpticalFlowu8" method?

3 posts / 0 new
Last post
How to use "fcvTrackLKOpticalFlowu8" method?
Min Woo_Park
Join Date: 23 Oct 11
Posts: 4
Posted: Thu, 2011-12-22 22:35

I want to track extracted features. 

So, i want to match. 

I was selected "fcvTrackLKOpticalFlowu8". 

but, i don't know how to use. 

Could you help me? And. How to use "fcvdescriptorcreate" merhod? What is patch? How make it?

The below code is a part of my code. 

 

fcvPyramidLevel* frmPyramid1 = (fcvPyramidLevel*)fcvMemAlloc(state.scaledImgWidth/2 * state.scaledImgHeight/2, 16 );

 fcvPyramidLevel* frmPyramid2= (fcvPyramidLevel*)fcvMemAlloc(state.scaledImgWidth/2 * state.scaledImgHeight/2, 16 );

fcvPyramidCreateu8(state.prevImage, state.blurredImgWidth, state.blurredImgHeight, 2, frmPyramid1 );

  fcvPyramidCreateu8(dataBuf, state.blurredImgWidth, state.blurredImgHeight, 2, frmPyramid2 );

 

 fcvPyramidLevel* dxPyramid= (fcvPyramidLevel*)fcvMemAlloc(state.scaledImgWidth/2 * state.scaledImgHeight/2, 16 );

 fcvPyramidLevel* dyPyramid= (fcvPyramidLevel*)fcvMemAlloc(state.scaledImgWidth/2 * state.scaledImgHeight/2, 16 );

 fcvPyramidSobelGradientCreatei8(frmPyramid1, dxPyramid, dyPyramid, 2);

 

 fcvTrackLKOpticalFlowu8(state.prevImage, state.blurredImgBuf, state.blurredImgWidth, state.blurredImgHeight, frmPyramid1, frmPyramid2, dxPyramid, dyPyramid, (float*)state.prevCorners, (float*)state.corners, state.featureStatus, state.numPrevCorners, 7, 7, 7, 2, 2.0, 0.15, 0, 1);

  • Up0
  • Down0
grk101@gmail.com
Join Date: 26 Oct 11
Posts: 25
Posted: Tue, 2011-12-27 15:06

This is a code snipet that shows how to use fcvTrackLKOpticalFlowu8 function: 

 

Cheers, 

Guy

  • Up0
  • Down0
scylove1989
Join Date: 3 Jul 13
Posts: 3
Posted: Mon, 2013-08-05 04:08

Is there any other answers?I also want to know its answer,thx   :) 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.