Skip to content
Snippets Groups Projects
Commit 37d5c757 authored by Thomas Boy's avatar Thomas Boy
Browse files

fix, for funtion undist source and dest shoudl be not equal

parent 163f4e6a
Branches
No related tags found
No related merge requests found
......@@ -378,12 +378,13 @@ int main(int argc, char * argv[])
{
//! step 0 we take care about the lense distortion
//! correct lense distortion
//Mat imgLenseCorrection = img_input.clone();
cv::undistort(img_input, img_input, intrinsicsCameraMatrix, distortionCoeff);
Mat imgLenseCorrection = img_input.clone();
//see https://docs.opencv.org/2.4/modules/imgproc/doc/geometric_transformations.html#undistort
cv::undistort(img_input, imgLenseCorrection, intrinsicsCameraMatrix, distortionCoeff);
//! we cut out a smaller ROI,
//! step 1)
img_input = TToolBox::cropImageCircle(img_input,circleCenterX,circleCenterY,circleRadius);
img_input = TToolBox::cropImageCircle(imgLenseCorrection,circleCenterX,circleCenterY,circleRadius);
//! normal bgs processing
//! step 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment