文档介绍:?这个。。。。。。就象茶壶一样,屁股被烧得红红的,还有心情吹口哨。生活其实很简单,过了今天就是明天。一生看一个女人是不科学的,容易看出病来。#include ""
#include <iostr number
CvPoint2D32f corners[MAX_CORNERS] = {0};// coordinates of corners
//CvPoint2D32f* corners = new CvPoint2D32f[ MAX_CORNERS ]; //another method of declaring an array
int corner_count = MAX_CORNERS;
double quality_level = ;//threshold for the eigenvalues
double min_distance = 5;//minimum distance between two corners
int eig_block_size = 3;//window size
int use_harris = false;//use 'harris method' or not
//----------initial guess by cvGoodFeaturesToTrack---------------
cvGoodFeaturesToTrack(imgGrey,
eig_image, // output
temp_image,
corners,
&corner_count,
quality_level,
min_distance,
NULL,
eig_block_size,
use_harris);
int r=2; //rectangle size
int lineWidth=1; // rectangle line width
//-----draw good feature corners on the original RGB image---------
for (int i=0;i<corner_count;i++){
cvRectangle(imgRGB2, cvPoint(corners[i].x-r,corners[i].y-r),
cvPoint(corners[i].x+r,corners[i].y+r), cvScalar(255,0,0),lineWidth);
}
int half_win_size=3;//the window size will be 3+1+3=7
int iteration=20;
double epislon=;
cvFindCorne