コード例 #1
0
ファイル: imgfeatures.c プロジェクト: KongWeibin/mrpt
/*
Draws Oxford-type affine features

@param img image on which to draw features
@param feat array of Oxford-type features
@param n number of features
*/
void draw_oxfd_features( IplImage* img, struct feature* feat, int n )
{
	CvScalar color = CV_RGB( 255, 255, 255 );
	int i;

	if( img-> nChannels > 1 )
		color = FEATURE_OXFD_COLOR;
	for( i = 0; i < n; i++ )
		draw_oxfd_feature( img, feat + i, color );
}
コード例 #2
0
ファイル: imgfeatures.c プロジェクト: phoenixZZZ/Camera_1080p
/*
Draws Oxford-type affine features
@param img image on which to draw features
@param feat array of Oxford-type features
@param n number of features
*/
static void draw_oxfd_features( IplImage* img, struct feature* feat, int n )
{
    //CvScalar color = CV_RGB( 255, 255, 255 );//颜色
	CvScalar color = cvScalar( 255, 255, 255, 0);//颜色
	int i;

	if( img-> nChannels > 1 )
		color = FEATURE_OXFD_COLOR;

    //调用函数,依次画出每个特征点
	for( i = 0; i < n; i++ )
		draw_oxfd_feature( img, feat + i, color );
}