Skip to content

Commit e5a3372

Browse files
author
Andrey Kamaev
committed
Move C API of opencv_calib3d to separate file
1 parent 199a35a commit e5a3372

File tree

70 files changed

+833
-789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+833
-789
lines changed

apps/haartraining/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SET(OPENCV_HAARTRAINING_DEPS opencv_core opencv_imgproc opencv_photo opencv_highgui opencv_objdetect opencv_calib3d opencv_video opencv_features2d opencv_flann opencv_legacy)
1+
SET(OPENCV_HAARTRAINING_DEPS opencv_core opencv_imgproc opencv_photo opencv_ml opencv_highgui opencv_objdetect opencv_calib3d opencv_video opencv_features2d opencv_flann opencv_legacy)
22
ocv_check_dependencies(${OPENCV_HAARTRAINING_DEPS})
33

44
if(NOT OCV_DEPENDENCIES_FOUND)

apps/haartraining/cvclassifier.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ CV_INLINE float cvLogRatio( float val )
112112
/* each trainData matrix row is a sample */
113113
#define CV_ROW_SAMPLE 1
114114

115-
#define CV_IS_ROW_SAMPLE( flags ) ( ( flags ) & CV_ROW_SAMPLE )
115+
#ifndef CV_IS_ROW_SAMPLE
116+
# define CV_IS_ROW_SAMPLE( flags ) ( ( flags ) & CV_ROW_SAMPLE )
117+
#endif
116118

117119
/* Classifier supports tune function */
118120
#define CV_TUNABLE (1 << 1)

include/opencv/cv.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@
6464
#include "opencv2/imgproc/imgproc_c.h"
6565
#include "opencv2/photo/photo_c.h"
6666
#include "opencv2/video/tracking_c.h"
67+
#include "opencv2/legacy.hpp"
68+
#include "opencv2/legacy/compat.hpp"
6769

68-
#include "opencv2/features2d.hpp"
69-
#include "opencv2/flann.hpp"
70-
#include "opencv2/calib3d.hpp"
7170
#include "opencv2/objdetect.hpp"
72-
#include "opencv2/legacy/compat.hpp"
7371

7472
#if !defined(CV_IMPL)
7573
#define CV_IMPL extern "C"

include/opencv/cv.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@
5353
#include "opencv2/photo.hpp"
5454
#include "opencv2/video.hpp"
5555
#include "opencv2/highgui.hpp"
56+
#include "opencv2/features2d.hpp"
57+
#include "opencv2/calib3d.hpp"
5658

5759
#endif

include/opencv/cvaux.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,12 @@
5050
#include "opencv2/imgproc/imgproc_c.h"
5151
#include "opencv2/photo/photo_c.h"
5252
#include "opencv2/video/tracking_c.h"
53-
54-
#include "opencv2/features2d.hpp"
55-
#include "opencv2/calib3d.hpp"
56-
#include "opencv2/objdetect.hpp"
5753
#include "opencv2/legacy.hpp"
5854
#include "opencv2/legacy/compat.hpp"
5955
#include "opencv2/legacy/blobtrack.hpp"
56+
57+
58+
#include "opencv2/objdetect.hpp"
6059
#include "opencv2/contrib.hpp"
6160

6261
#endif

modules/calib3d/doc/camera_calibration_and_3d_reconstruction.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ calibrateCamera
115115
---------------
116116
Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.
117117

118-
.. ocv:function:: double calibrateCamera( InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags=0, TermCriteria criteria=TermCriteria( TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON) )
118+
.. ocv:function:: double calibrateCamera( InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags=0, TermCriteria criteria=TermCriteria( TermCriteria::COUNT + TermCriteria::EPS, 30, DBL_EPSILON) )
119119
120120
.. ocv:pyfunction:: cv2.calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix, distCoeffs[, rvecs[, tvecs[, flags[, criteria]]]]) -> retval, cameraMatrix, distCoeffs, rvecs, tvecs
121121
@@ -454,7 +454,7 @@ findChessboardCorners
454454
-------------------------
455455
Finds the positions of internal corners of the chessboard.
456456

457-
.. ocv:function:: bool findChessboardCorners( InputArray image, Size patternSize, OutputArray corners, int flags=CALIB_CB_ADAPTIVE_THRESH+CALIB_CB_NORMALIZE_IMAGE )
457+
.. ocv:function:: bool findChessboardCorners( InputArray image, Size patternSize, OutputArray corners, int flags=CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE )
458458
459459
.. ocv:pyfunction:: cv2.findChessboardCorners(image, patternSize[, corners[, flags]]) -> retval, corners
460460
@@ -515,7 +515,7 @@ Finds centers in the grid of circles.
515515

516516
.. ocv:function:: bool findCirclesGrid( InputArray image, Size patternSize, OutputArray centers, int flags=CALIB_CB_SYMMETRIC_GRID, const Ptr<FeatureDetector> &blobDetector = new SimpleBlobDetector() )
517517
518-
.. ocv:pyfunction:: cv2.findCirclesGridDefault(image, patternSize[, centers[, flags]]) -> retval, centers
518+
.. ocv:pyfunction:: cv2.findCirclesGrid(image, patternSize[, centers[, flags[, blobDetector]]]) -> retval, centers
519519
520520
:param image: grid view of input circles; it must be an 8-bit grayscale or color image.
521521

@@ -694,7 +694,7 @@ findEssentialMat
694694
------------------
695695
Calculates an essential matrix from the corresponding points in two images.
696696

697-
.. ocv:function:: Mat findEssentialMat( InputArray points1, InputArray points2, double focal=1.0, Point2d pp=Point2d(0, 0), int method=CV_RANSAC, double prob=0.999, double threshold=1.0, OutputArray mask=noArray() )
697+
.. ocv:function:: Mat findEssentialMat( InputArray points1, InputArray points2, double focal=1.0, Point2d pp=Point2d(0, 0), int method=RANSAC, double prob=0.999, double threshold=1.0, OutputArray mask=noArray() )
698698
699699
:param points1: Array of ``N`` ``(N >= 5)`` 2D points from the first image. The point coordinates should be floating-point (single or double precision).
700700

@@ -975,7 +975,7 @@ initCameraMatrix2D
975975
----------------------
976976
Finds an initial camera matrix from 3D-2D point correspondences.
977977

978-
.. ocv:function:: Mat initCameraMatrix2D( InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, double aspectRatio=1.)
978+
.. ocv:function:: Mat initCameraMatrix2D( InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, double aspectRatio=1.0 )
979979
980980
.. ocv:pyfunction:: cv2.initCameraMatrix2D(objectPoints, imagePoints, imageSize[, aspectRatio]) -> retval
981981

0 commit comments

Comments
 (0)