151 printf(
"error: CUndistortion object has not been initialized for CUndistortion::UpdateMaps\n");
void ComputeMap(int width, int height)
This method initializes the instance for mapping of images of a specific size.
CUndistortionMapper * m_pUndistortionMapperLeft
bool LoadCameraParameters(const char *pCameraParameterFileName, bool bTransformLeftCameraToIdentity=true)
Initializes the stereo camera model, given a file path to a stereo camera parameter file...
bool LoadCameraParameters(const char *pCameraParameterFileName, int nCamera=0, bool bSetExtrinsicToIdentity=false)
Initializes the camera model, given a file path to a camera parameter file.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
void DistortImageCoordinates(const Vec2d &undistortedImagePoint, Vec2d &distortedImagePoint) const
Transforms 2D undistorted image coordinates to 2D distorted image coordinates.
const CCalibration * m_pCalibrationLeft
void ComputeOriginalCoordinates(const Vec2d &newCoordinates, Vec2d &originalCoordinates)
void Init(const CCalibration *pCalibration)
const CCalibration * GetLeftCalibration() const
Access to the instance of CCalibration for the camera model of the left camera.
const CCameraParameters & GetCameraParameters() const
Gives access to the camera parameters.
CUndistortion(bool bInterpolate=true)
CStereoCalibration * m_pStereoCalibration
const CCalibration * m_pCalibrationRight
void Undistort(const CByteImage *pInputImage, CByteImage *pOutputImage)
Camera model and functions for a stereo camera system.
int Init(const char *pCameraParameterFileName)
void PerformMapping(const CByteImage *pInputImage, CByteImage *pOutputImage)
This method performs the mapping.
CUndistortionMapper(bool bInterpolate)
Data structure for the representation of a 2D vector.
CUndistortionMapper * m_pUndistortionMapperRight
Camera model parameters and functions for a single camera.
const CCalibration * m_pCalibration
const CCalibration * GetRightCalibration() const
Access to the instance of CCalibration for the camera model of the right camera.