Class Undistorter

Class Documentation

class dense_reconstruction::stereo::Undistorter

Public Functions

explicit Undistorter(const CameraParametersPair &input_camera_parameters_pair)
void undistortImage(const cv::Mat &image, cv::Mat *undistored_image)
const CameraParametersPair &getCameraParametersPair()

Public Static Functions

static void setOptimalOutputCameraParameters(const double scale, CameraParametersPair *camera_parameters_pair)
static void distortPixel(const Eigen::Matrix<double, 3, 3> &K_in, const Eigen::Matrix<double, 3, 3> &R_in, const Eigen::Matrix<double, 3, 4> &P_out, const DistortionModel &distortion_model, const std::vector<double> &D, const Eigen::Vector2d &pixel_location, Eigen::Vector2d *distorted_pixel_location)