コード例 #1
0
ファイル: demo_lib_sift.cpp プロジェクト: jguinet/s2p
/* Joan Pau: Add a new keypoint to a vector of keypoints
   Create a new keypoint and return list of keypoints with new one added.
*/
void MakeKeypoint(
	const flimage& grad, float octSize, float octScale,
	float octRow, float octCol, float angle, keypointslist& keys,siftPar &par)
{
	keypoint newkeypoint;
	newkeypoint.x = octSize * octCol;	/*x coordinate */
	newkeypoint.y = octSize * octRow;	/*y coordinate */
	newkeypoint.scale = octSize * octScale;	/* scale */
	newkeypoint.angle = angle;		/* orientation */
	MakeKeypointSample(newkeypoint,grad,octScale,octRow,octCol,par);
	keys.push_back(newkeypoint);
}
コード例 #2
0
ファイル: key.c プロジェクト: BOTSlab/bupimo_src
/* Create a new keypoint and return list of keypoints with new one added.
*/
KKeypoint MakeKeypoint(Image grad, Image ori, float octSize, float octScale,
		      float octRow, float octCol, float angle, KKeypoint keys)
{
    KKeypoint k;

    k = NEW(KKeypointSt, KEY_POOL);
    k->next = keys;
    keys = k;
    k->ori = angle;
    k->row = octSize * octRow;
    k->col = octSize * octCol;
    k->scale = octSize * octScale;
    MakeKeypointSample(k, grad, ori, octScale, octRow, octCol);
    return keys;
}