CV_EXPORTS void pyrUp( const Mat& src, Mat& dst, const Size& dstsize=Size());\r
CV_EXPORTS void buildPyramid( const Mat& src, Vector<Mat>& dst, int maxlevel );\r
\r
+\r
+CV_EXPORTS void undistort( const Mat& src, Mat& dst, const Mat& cameraMatrix,
+ const Mat& distCoeffs, const Mat& newCameraMatrix=Mat() );
+CV_EXPORTS Mat_<double> getDefaultNewCameraMatrix( const Mat_<double>& A, Size imgsize );\r
+\r
}\r
\r
//////////////////////////////////////////////////////////////////////////////////////////\r
namespace cv
{
-static Mat_<double> getDefaultNewCameraMatrix( const Mat_<double>& A, Size imgsize )
+Mat_<double> getDefaultNewCameraMatrix( const Mat_<double>& A, Size imgsize )
{
Mat_<double> Ar(3, 3);
Ar << A(0,0), 0., (imgsize.width-1)*0.5,