Module: OpenCV::Cv::Fisheye

Defined in:
lib/ropencv/ropencv_types.rb

Overview

Note:

namespace wrapper for cv::fisheye

Constants collapse

CALIB_USE_INTRINSIC_GUESS =
1
CALIB_RECOMPUTE_EXTRINSIC =
2
CALIB_CHECK_COND =
4
CALIB_FIX_SKEW =
8
CALIB_FIX_K1 =
16
CALIB_FIX_K2 =
32
CALIB_FIX_K3 =
64
CALIB_FIX_K4 =
128
CALIB_FIX_INTRINSIC =
256
CALIB_FIX_PRINCIPAL_POINT =
512
CALIB_ZERO_DISPARITY =
1024
CALIB_FIX_FOCAL_LENGTH =
2048

Class Method Summary collapse

Class Method Details

.calibrate(object_points, image_points, image_size, k, d, rvecs, tvecs, flags = 0, criteria = Cv::TermCriteria.new(TermCriteria::COUNT + TermCriteria::EPS, 100, DBL_EPSILON)) ⇒ Double

Note:

wrapper for static method double cv::fisheye::calibrate(const std::vectorcv::Mat objectPoints, const std::vectorcv::Mat imagePoints, const cv::Size image_size, cv::Mat& K, cv::Mat& D, std::vectorcv::Mat& rvecs, std::vectorcv::Mat& tvecs, int flags = 0, const cv::TermCriteria criteria = TermCriteria(TermCriteria::COUNT + TermCriteria::EPS, 100, DBL_EPSILON))

Parameters:

Returns:

  • (Double)


70725
70726
70727
# File 'lib/ropencv/ropencv_types.rb', line 70725

def self.calibrate(object_points, image_points, image_size, k, d, rvecs, tvecs, flags = 0, criteria = Cv::TermCriteria.new(TermCriteria::COUNT + TermCriteria::EPS, 100, DBL_EPSILON))
    Rbind::cv_fisheye_calibrate(object_points, image_points, image_size, k, d, rvecs, tvecs, flags, criteria)
end

.distort_points(undistorted, distorted, k, d, alpha = 0) ⇒ Void Also known as: distortPoints

Note:

wrapper for static method void cv::fisheye::distortPoints(const cv::Mat undistorted, cv::Mat& distorted, const cv::Mat K, const cv::Mat D, double alpha = 0)

Parameters:

Returns:

  • (Void)


70653
70654
70655
# File 'lib/ropencv/ropencv_types.rb', line 70653

def self.distort_points(undistorted, distorted, k, d, alpha = 0)
    Rbind::cv_fisheye_distort_points(undistorted, distorted, k, d, alpha)
end

.estimate_new_camera_matrix_for_undistort_rectify(k, d, image_size, r, p, balance = 0.0, new_size = Cv::Size.new(), fov_scale = 1.0) ⇒ Void Also known as: estimateNewCameraMatrixForUndistortRectify

Note:

wrapper for static method void cv::fisheye::estimateNewCameraMatrixForUndistortRectify(const cv::Mat K, const cv::Mat D, const cv::Size image_size, const cv::Mat R, cv::Mat& P, double balance = 0.0, const cv::Size new_size = Size(), double fov_scale = 1.0)

Parameters:

Returns:

  • (Void)


70709
70710
70711
# File 'lib/ropencv/ropencv_types.rb', line 70709

def self.estimate_new_camera_matrix_for_undistort_rectify(k, d, image_size, r, p, balance = 0.0, new_size = Cv::Size.new(), fov_scale = 1.0)
    Rbind::cv_fisheye_estimate_new_camera_matrix_for_undistort_rectify(k, d, image_size, r, p, balance, new_size, fov_scale)
end

.init_undistort_rectify_map(k, d, r, p, size, _m1type, _map1, _map2) ⇒ Void Also known as: initUndistortRectifyMap

Note:

wrapper for static method void cv::fisheye::initUndistortRectifyMap(const cv::Mat K, const cv::Mat D, const cv::Mat R, const cv::Mat P, const cv::Size size, int m1type, cv::Mat& map1, cv::Mat& map2)

Parameters:

Returns:

  • (Void)


70681
70682
70683
# File 'lib/ropencv/ropencv_types.rb', line 70681

def self.init_undistort_rectify_map(k, d, r, p, size, _m1type, _map1, _map2)
    Rbind::cv_fisheye_init_undistort_rectify_map(k, d, r, p, size, _m1type, _map1, _map2)
end

.project_points(object_points, image_points, rvec, tvec, k, d, alpha = 0, jacobian = Cv::Mat.new()) ⇒ Void Also known as: projectPoints

Note:

wrapper for static method void cv::fisheye::projectPoints(const cv::Mat objectPoints, cv::Mat& imagePoints, const cv::Mat rvec, const cv::Mat tvec, const cv::Mat K, const cv::Mat D, double alpha = 0, const cv::Mat jacobian = Mat()/O)

Parameters:

Returns:

  • (Void)


70641
70642
70643
# File 'lib/ropencv/ropencv_types.rb', line 70641

def self.project_points(object_points, image_points, rvec, tvec, k, d, alpha = 0, jacobian = Cv::Mat.new())
    Rbind::cv_fisheye_project_points(object_points, image_points, rvec, tvec, k, d, alpha, jacobian)
end

.stereo_calibrate(object_points, _image_points1, _image_points2, _k1, _d1, _k2, _d2, image_size, r, t, flags = Fisheye::CALIB_FIX_INTRINSIC, criteria = Cv::TermCriteria.new(TermCriteria::COUNT + TermCriteria::EPS, 100, DBL_EPSILON)) ⇒ Double Also known as: stereoCalibrate

Note:

wrapper for static method double cv::fisheye::stereoCalibrate(const std::vectorcv::Mat objectPoints, const std::vectorcv::Mat imagePoints1, const std::vectorcv::Mat imagePoints2, cv::Mat& K1, cv::Mat& D1, cv::Mat& K2, cv::Mat& D2, const cv::Size imageSize, cv::Mat& R, cv::Mat& T, int flags = fisheye::CALIB_FIX_INTRINSIC, const cv::TermCriteria criteria = TermCriteria(TermCriteria::COUNT + TermCriteria::EPS, 100, DBL_EPSILON))

Parameters:

Returns:

  • (Double)


70766
70767
70768
# File 'lib/ropencv/ropencv_types.rb', line 70766

def self.stereo_calibrate(object_points, _image_points1, _image_points2, _k1, _d1, _k2, _d2, image_size, r, t, flags = Fisheye::CALIB_FIX_INTRINSIC, criteria = Cv::TermCriteria.new(TermCriteria::COUNT + TermCriteria::EPS, 100, DBL_EPSILON))
    Rbind::cv_fisheye_stereo_calibrate(object_points, _image_points1, _image_points2, _k1, _d1, _k2, _d2, image_size, r, t, flags, criteria)
end

.stereo_rectify(_k1, _d1, _k2, _d2, image_size, r, tvec, _r1, _r2, _p1, _p2, q, flags, new_image_size = Cv::Size.new(), balance = 0.0, fov_scale = 1.0) ⇒ Void Also known as: stereoRectify

Note:

wrapper for static method void cv::fisheye::stereoRectify(const cv::Mat K1, const cv::Mat D1, const cv::Mat K2, const cv::Mat D2, const cv::Size imageSize, const cv::Mat R, const cv::Mat tvec, cv::Mat& R1, cv::Mat& R2, cv::Mat& P1, cv::Mat& P2, cv::Mat& Q, int flags, const cv::Size newImageSize = Size(), double balance = 0.0, double fov_scale = 1.0)

Parameters:

Returns:

  • (Void)


70747
70748
70749
# File 'lib/ropencv/ropencv_types.rb', line 70747

def self.stereo_rectify(_k1, _d1, _k2, _d2, image_size, r, tvec, _r1, _r2, _p1, _p2, q, flags, new_image_size = Cv::Size.new(), balance = 0.0, fov_scale = 1.0)
    Rbind::cv_fisheye_stereo_rectify(_k1, _d1, _k2, _d2, image_size, r, tvec, _r1, _r2, _p1, _p2, q, flags, new_image_size, balance, fov_scale)
end

.undistort_image(distorted, undistorted, k, d, knew = Cv::Mat.new(), new_size = Cv::Size.new()) ⇒ Void Also known as: undistortImage

Note:

wrapper for static method void cv::fisheye::undistortImage(const cv::Mat distorted, cv::Mat& undistorted, const cv::Mat K, const cv::Mat D, const cv::Mat Knew = cv::Mat(), const cv::Size new_size = Size())

Parameters:

Returns:

  • (Void)


70694
70695
70696
# File 'lib/ropencv/ropencv_types.rb', line 70694

def self.undistort_image(distorted, undistorted, k, d, knew = Cv::Mat.new(), new_size = Cv::Size.new())
    Rbind::cv_fisheye_undistort_image(distorted, undistorted, k, d, knew, new_size)
end

.undistort_points(distorted, undistorted, k, d, r = Cv::Mat.new(), p = Cv::Mat.new()) ⇒ Void Also known as: undistortPoints

Note:

wrapper for static method void cv::fisheye::undistortPoints(const cv::Mat distorted, cv::Mat& undistorted, const cv::Mat K, const cv::Mat D, const cv::Mat R = Mat(), const cv::Mat P = Mat())

Parameters:

Returns:

  • (Void)


70666
70667
70668
# File 'lib/ropencv/ropencv_types.rb', line 70666

def self.undistort_points(distorted, undistorted, k, d, r = Cv::Mat.new(), p = Cv::Mat.new())
    Rbind::cv_fisheye_undistort_points(distorted, undistorted, k, d, r, p)
end