Find an edge image by using Harris edge detector.
void cvCornerHarris (const CvArr * image, CvArr * harris_responce,.
int block_size, int aperture_size = 3, double k = 0.04);
image = image size as the original. floating-point 32-bit 1 channel.
harris_responce = picture results after finding marginal Harris picture should be sized originals.
block_size = same function cvCornerEigenValsAndVecs.
aperture_size = see Sobel.
k = Harris detector free parameter which is equal to 0.04 default.
//CornerHarris
IplImage *pHarris=cvCreateImage(cvGetSize(pCornerEigen),IPL_DEPTH_32F,1); cvCornerHarris( pCornerEigen, pHarris, 3 , 7, 0.04 );
cvNamedWindow("Harris",CV_WINDOW_AUTOSIZE);
cvShowImage("Harris", pHarris);
0 comments:
Post a Comment