This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

affine Transform

Hello,

I want to use the affine transform in order to correct the fisheye camera distortion. I tried to use the sample code in vicp lib but I am getting images for certain input values to CPIS_affineTransform() function. I'm using the example codes in the VICP. I am using input image of resolution 192x144.

The input parametres that i can get correct outputs are : 

#define WIDTH  192

#define HEIGHT 144

#define OFFSET_X 0

#define OFFSET_Y 0

#define ROI_WIDTH  191

#define ROI_HEIGHT 143

TestAffineTransformParams testParams[]={

 

{

 CPIS_U8BIT, //format

 1,           //skipOutside

 PI,        //angle

 1,         //scale_x

 1,         //scale_y

 0,           //t_x

 0,           //t_y

 3,           //qShift

 255,         //sat_high

 255,         //sat_high_set

 0,           //sat_low

 0            //sat_low_set

}

}

 

But I want to correct the input image as in the link, http://dasl.mem.drexel.edu/~noahKuntz/openCVTut10.html 

what parameters should I supply to get an corrected image?

 

Thanks for replies