Iris normalization

asked 2015-05-15 07:09:18 -0500

valazom gravatar image

Hello everyone,

I am trying to write a code for Iris normalization. but getting errors with cvLogpolar transformation in opencv. please i need your urgently. Below is my function`enter code here:

static Mat getpolar2CartImg(Mat& image, int rad){
Size imagsize = image.size();
IplImage img = image;
IplImage*newimage = &img;
IplImage* dst = cvCreateImage(cvSize(rad * 3, (int)360), 8, 3);
cvLogPolar(newimage, dst, cvPoint2D32f(imagsize.width / 2.0, imagsize.height / 2.0), 60.0,         CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS);
Mat rt = Mat(dst);
return dst;

}

edit retag flag offensive close merge delete

Comments

Yewww! You shall pass to C++ version!!!

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-05-15 10:13:04 -0500 )edit
1

real sad, that the 2.4 branch still does not have the c++ version (cv::logPolar). another reason to migrate to 3.0, maybe ?

berak gravatar imageberak ( 2015-05-15 10:29:35 -0500 )edit