fl.html

来自「this is code for finding and tracking fe」· HTML 代码 · 共 56 行

HTML
56
字号
<title> </title><a href = "../index.html"><IMG SRC="../home_motif.gif" ALIGN=bottom></a><a href = "index.html"><IMG SRC="../toc_motif.gif" ALIGN=bottom></a><a href = "feature.html"><IMG SRC="../previous_motif.gif" ALIGN=bottom></a><a href = "fh.html"><IMG SRC="../next_motif.gif" ALIGN=bottom></a><hr><h2> KLT_FeatureList </h2> <h2> <code>typedef struct  {<br>     int nFeatures;<br>     KLT_Feature *feature;<br>}  *KLT_FeatureList;<br></code></h2>A KLT_FeatureList is an array of features.  The <code>nFeatures</code> fieldindicates the number of features allocated, but not necessarily the number of non-lost features.  It must not be changed manually.<p>NOTE: Although a feature list and a feature history look similar, the formeris intended to refer to an array of features from a single image, whilethe latter refers to the same feature tracked through several images.<p>The following code illustrates how to access the datain a feature list:<pre width = 80>KLT_FeatureList fl;int feat;for (feat = 0 ; feat < fl->nFeatures ; feat++)  {     printf("(%5.1f,%5.1f) = %d\n",          fl->feature[feat]->x,          fl->feature[feat]->y,          fl->feature[feat]->val);}</pre><hr>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?