Friday, May 7, 2010

Corner Eigen Vals And Vecs

In Digital image processing that can Calculate the eigen values and eigen vectors using blogs to find the image angle.

Use function


void cvCornerEigenValsAndVecs (const CvArr * image, CvArr * eigenvv, int block_size, int aperture_size = 3);

scr = original image and the image size must be 8-bit 1 channel.
dst = image used to store results for a wide angle would be six times the original picture and picture floating-point 32-bit 1 channel.
block_size = size of pixel around S (p) filter size block_size x block_size.
aperture_size = the value of the Sobel filter matrix which must be at 1,3,5 and 7 only, where the metric is metric size aperture_size x aperture_size.

//CornerEigen
CvSize imgSize = cvGetSize(pGray);
IplImage*pCornerEigen=cvCreateImage( cvSize(imgSize.width*6 , imgSize.height) ,
IPL_DEPTH_32F,1 );
cvCornerEigenValsAndVecs( pGray, pCornerEigen, 3, 7 );
cvNamedWindow("CornerEigen",CV_WINDOW_AUTOSIZE);
cvShowImage("CornerEigen", pCornerEigen);


image process

0 comments:

Post a Comment

 
Copyright 2009 About of Image Processing