Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Sample calibration.cpp wrong lines?

$
0
0
Hi, I start working on calibration using [sample calibration.cpp](https://github.com/Itseez/opencv/blob/master/samples/cpp/calibration.cpp#L556). I have copied following line for my own example and I don't understand parameter CV_16SC2 with remap(view, rview, map1, map2, INTER_LINEAR); if( !capture.isOpened() && showUndistorted ) { Mat view, rview, map1, map2; Size imageSize2(1.1*imageSize.width,1.1*imageSize.height); initUndistortRectifyMap(cameraMatrix, distCoeffs, Mat(), getOptimalNewCameraMatrix(cameraMatrix, distCoeffs, imageSize, 1, imageSize, 0), imageSize2, CV_16SC2, map1, map2); for( i = 0; i < (int)imageList.size(); i++ ) { view = imread(imageList[i], 1); if(view.empty()) continue; //undistort( view, rview, cameraMatrix, distCoeffs, cameraMatrix ); remap(view, rview, map1, map2, INTER_LINEAR); I think it must be CV_16SC1 with remap(view, rview, map1, map2, INTER_LINEAR); or CV_16SC2 with remap(view, rview, map1, Mat(), INTER_LINEAR); Is it right?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>