@@ -14,15 +14,15 @@ namespace cv { namespace
14
14
}}
15
15
16
16
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
17
- // / cv::Fisheye ::projectPoints
17
+ // / cv::fisheye ::projectPoints
18
18
19
- void cv::Fisheye ::projectPoints (InputArray objectPoints, OutputArray imagePoints, const Affine3d& affine,
19
+ void cv::fisheye ::projectPoints (InputArray objectPoints, OutputArray imagePoints, const Affine3d& affine,
20
20
InputArray K, InputArray D, double alpha, OutputArray jacobian)
21
21
{
22
22
projectPoints (objectPoints, imagePoints, affine.rvec (), affine.translation (), K, D, alpha, jacobian);
23
23
}
24
24
25
- void cv::Fisheye ::projectPoints (InputArray objectPoints, OutputArray imagePoints, InputArray _rvec,
25
+ void cv::fisheye ::projectPoints (InputArray objectPoints, OutputArray imagePoints, InputArray _rvec,
26
26
InputArray _tvec, InputArray _K, InputArray _D, double alpha, OutputArray jacobian)
27
27
{
28
28
// will support only 3-channel data now for points
@@ -202,9 +202,9 @@ void cv::Fisheye::projectPoints(InputArray objectPoints, OutputArray imagePoints
202
202
}
203
203
204
204
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
205
- // / cv::Fisheye ::distortPoints
205
+ // / cv::fisheye ::distortPoints
206
206
207
- void cv::Fisheye ::distortPoints (InputArray undistorted, OutputArray distorted, InputArray K, InputArray D, double alpha)
207
+ void cv::fisheye ::distortPoints (InputArray undistorted, OutputArray distorted, InputArray K, InputArray D, double alpha)
208
208
{
209
209
// will support only 2-channel data now for points
210
210
CV_Assert (undistorted.type () == CV_32FC2 || undistorted.type () == CV_64FC2);
@@ -264,9 +264,9 @@ void cv::Fisheye::distortPoints(InputArray undistorted, OutputArray distorted, I
264
264
}
265
265
266
266
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
267
- // / cv::Fisheye ::undistortPoints
267
+ // / cv::fisheye ::undistortPoints
268
268
269
- void cv::Fisheye ::undistortPoints ( InputArray distorted, OutputArray undistorted, InputArray _K, InputArray _D, InputArray _R, InputArray _P)
269
+ void cv::fisheye ::undistortPoints ( InputArray distorted, OutputArray undistorted, InputArray _K, InputArray _D, InputArray _R, InputArray _P)
270
270
{
271
271
// will support only 2-channel data now for points
272
272
CV_Assert (distorted.type () == CV_32FC2 || distorted.type () == CV_64FC2);
@@ -353,9 +353,9 @@ void cv::Fisheye::undistortPoints( InputArray distorted, OutputArray undistorted
353
353
}
354
354
355
355
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
356
- // / cv::Fisheye ::undistortPoints
356
+ // / cv::fisheye ::undistortPoints
357
357
358
- void cv::Fisheye ::initUndistortRectifyMap ( InputArray _K, InputArray _D, InputArray _R, InputArray _P,
358
+ void cv::fisheye ::initUndistortRectifyMap ( InputArray _K, InputArray _D, InputArray _R, InputArray _P,
359
359
const cv::Size& size, int m1type, OutputArray map1, OutputArray map2 )
360
360
{
361
361
CV_Assert ( m1type == CV_16SC2 || m1type == CV_32F || m1type <=0 );
@@ -449,23 +449,23 @@ void cv::Fisheye::initUndistortRectifyMap( InputArray _K, InputArray _D, InputAr
449
449
}
450
450
451
451
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
452
- // / cv::Fisheye ::undistortImage
452
+ // / cv::fisheye ::undistortImage
453
453
454
- void cv::Fisheye ::undistortImage (InputArray distorted, OutputArray undistorted,
454
+ void cv::fisheye ::undistortImage (InputArray distorted, OutputArray undistorted,
455
455
InputArray K, InputArray D, InputArray Knew, const Size& new_size)
456
456
{
457
457
Size size = new_size.area () != 0 ? new_size : distorted.size ();
458
458
459
459
cv::Mat map1, map2;
460
- initUndistortRectifyMap (K, D, cv::Matx33d::eye (), Knew, size, CV_16SC2, map1, map2 );
460
+ fisheye:: initUndistortRectifyMap (K, D, cv::Matx33d::eye (), Knew, size, CV_16SC2, map1, map2 );
461
461
cv::remap (distorted, undistorted, map1, map2, INTER_LINEAR, BORDER_CONSTANT);
462
462
}
463
463
464
464
465
465
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
466
- // / cv::Fisheye ::estimateNewCameraMatrixForUndistortRectify
466
+ // / cv::fisheye ::estimateNewCameraMatrixForUndistortRectify
467
467
468
- void cv::Fisheye ::estimateNewCameraMatrixForUndistortRectify (InputArray K, InputArray D, const Size &image_size, InputArray R,
468
+ void cv::fisheye ::estimateNewCameraMatrixForUndistortRectify (InputArray K, InputArray D, const Size &image_size, InputArray R,
469
469
OutputArray P, double balance, const Size& new_size, double fov_scale)
470
470
{
471
471
CV_Assert ( K.size () == Size (3 , 3 ) && (K.depth () == CV_32F || K.depth () == CV_64F));
@@ -495,7 +495,7 @@ void cv::Fisheye::estimateNewCameraMatrixForUndistortRectify(InputArray K, Input
495
495
}
496
496
#endif
497
497
498
- undistortPoints (points, points, K, D, R);
498
+ fisheye:: undistortPoints (points, points, K, D, R);
499
499
cv::Scalar center_mass = mean (points);
500
500
cv::Vec2d cn (center_mass.val );
501
501
@@ -560,9 +560,9 @@ void cv::Fisheye::estimateNewCameraMatrixForUndistortRectify(InputArray K, Input
560
560
561
561
562
562
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
563
- // / cv::Fisheye ::stereoRectify
563
+ // / cv::fisheye ::stereoRectify
564
564
565
- void cv::Fisheye ::stereoRectify ( InputArray K1, InputArray D1, InputArray K2, InputArray D2, const Size& imageSize,
565
+ void cv::fisheye ::stereoRectify ( InputArray K1, InputArray D1, InputArray K2, InputArray D2, const Size& imageSize,
566
566
InputArray _R, InputArray _tvec, OutputArray R1, OutputArray R2, OutputArray P1, OutputArray P2,
567
567
OutputArray Q, int flags, const Size& newImageSize, double balance, double fov_scale)
568
568
{
@@ -642,9 +642,9 @@ void cv::Fisheye::stereoRectify( InputArray K1, InputArray D1, InputArray K2, In
642
642
}
643
643
644
644
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
645
- // / cv::Fisheye ::calibrate
645
+ // / cv::fisheye ::calibrate
646
646
647
- double cv::Fisheye ::calibrate (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, const Size& image_size,
647
+ double cv::fisheye ::calibrate (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, const Size& image_size,
648
648
InputOutputArray K, InputOutputArray D, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs,
649
649
int flags , cv::TermCriteria criteria)
650
650
{
@@ -758,9 +758,9 @@ double cv::Fisheye::calibrate(InputArrayOfArrays objectPoints, InputArrayOfArray
758
758
}
759
759
760
760
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
761
- // / cv::Fisheye ::stereoCalibrate
761
+ // / cv::fisheye ::stereoCalibrate
762
762
763
- double cv::Fisheye ::stereoCalibrate (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2,
763
+ double cv::fisheye ::stereoCalibrate (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2,
764
764
InputOutputArray K1, InputOutputArray D1, InputOutputArray K2, InputOutputArray D2, Size imageSize,
765
765
OutputArray R, OutputArray T, int flags, TermCriteria criteria)
766
766
{
@@ -1094,7 +1094,7 @@ void cv::internal::projectPoints(cv::InputArray objectPoints, cv::OutputArray im
1094
1094
Matx33d K (param.f [0 ], param.f [0 ] * param.alpha , param.c [0 ],
1095
1095
0 , param.f [1 ], param.c [1 ],
1096
1096
0 , 0 , 1 );
1097
- Fisheye ::projectPoints (objectPoints, imagePoints, _rvec, _tvec, K, param.k , param.alpha , jacobian);
1097
+ fisheye ::projectPoints (objectPoints, imagePoints, _rvec, _tvec, K, param.k , param.alpha , jacobian);
1098
1098
}
1099
1099
1100
1100
void cv::internal::ComputeExtrinsicRefine (const Mat& imagePoints, const Mat& objectPoints, Mat& rvec,
@@ -1251,7 +1251,7 @@ cv::Mat cv::internal::NormalizePixels(const Mat& imagePoints, const IntrinsicPar
1251
1251
ptr_d[i] = (ptr[i] - param.c ).mul (Vec2d (1.0 / param.f [0 ], 1.0 / param.f [1 ]));
1252
1252
ptr_d[i][0 ] = ptr_d[i][0 ] - param.alpha * ptr_d[i][1 ];
1253
1253
}
1254
- cv::Fisheye ::undistortPoints (distorted, undistorted, Matx33d::eye (), param.k );
1254
+ cv::fisheye ::undistortPoints (distorted, undistorted, Matx33d::eye (), param.k );
1255
1255
return undistorted;
1256
1256
}
1257
1257
0 commit comments