Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/ccalib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
set(the_description "Custom Calibration Pattern")
ocv_define_module(ccalib opencv_core opencv_imgproc opencv_calib3d opencv_features2d opencv_highgui opencv_imgcodecs WRAP python)
if(BUILD_TESTS)
add_subdirectory(test)
endif()
18 changes: 14 additions & 4 deletions modules/ccalib/include/opencv2/ccalib/omnidir.hpp
Comment thread
nechami795 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@

namespace cv
{
/** following typedefs used in k3 support (github.com/opencv/opencv_contrib/issues/3952)
      should go to opencv2/core/matx.hpp at some point */
typedef Matx<float, 1, 5> Matx15f;
typedef Matx<double, 1, 5> Matx15d;
typedef Matx<float, 2, 5> Matx25f;
typedef Matx<double, 2, 5> Matx25d;
typedef Vec<double, 5> Vec5d;
namespace omnidir
{
//! @addtogroup ccalib
Expand All @@ -62,7 +69,9 @@ namespace omnidir
CALIB_FIX_P2 = 32,
CALIB_FIX_XI = 64,
CALIB_FIX_GAMMA = 128,
CALIB_FIX_CENTER = 256
CALIB_FIX_CENTER = 256,
CALIB_FIX_K3 = 512

};

enum{
Expand Down Expand Up @@ -270,10 +279,11 @@ namespace internal
void decodeParametersStereo(InputArray parameters, OutputArray K1, OutputArray K2, OutputArray om, OutputArray T, OutputArrayOfArrays omL,
OutputArrayOfArrays tL, OutputArray D1, OutputArray D2, double& xi1, double& xi2);

void estimateUncertainties(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, InputArray parameters, Mat& errors, Vec2d& std_error, double& rms, int flags);
void estimateUncertainties(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, InputArray parameters,
Mat& errors, Vec2d& std_error, double& rms, int flags);

void estimateUncertaintiesStereo(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2, InputArray parameters, Mat& errors,
Vec2d& std_error, double& rms, int flags);
void estimateUncertaintiesStereo(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2,
InputArray parameters, Mat& errors, Vec2d& std_error, double& rms, int flags);

double computeMeanReproErr(InputArrayOfArrays imagePoints, InputArrayOfArrays proImagePoints);

Expand Down
Loading