Exemplo n.º 1
0
/* 
Draws Lowe-type features 
 
@param img image on which to draw features 
@param feat array of Oxford-type features 
@param n number of features 
*/  
static void draw_lowe_features( IplImage* img, struct feature* feat, int n )  
{  
    CvScalar color = CV_RGB( 255, 255, 255 );  
    int i;  
  
    if( img-> nChannels > 1 )  
        color = FEATURE_LOWE_COLOR;  
    for( i = 0; i < n; i++ )  
        draw_lowe_feature( img, feat + i, color );  
}  
Exemplo n.º 2
0
/*
Draws Lowe-type features
@param img image on which to draw features
@param feat array of Oxford-type features
@param n number of features
*/
static void draw_lowe_features( IplImage* img, struct feature* feat, int n )
{
    CvScalar color = cvScalar( 255, 255, 255, 0);//颜色
	int i;

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

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