/* 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 ); }
/* 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 ); }