17 #ifndef __mitkUndistortCameraImage_h
18 #define __mitkUndistortCameraImage_h
21 #include <MitkOpenCVVideoSupportExports.h>
22 #include "itkObject.h"
50 itkFactorylessNewMacro(Self)
57 void SetFocalLength(
float fc_x,
float fc_y)
59 m_fcX = fc_x; m_fcY = fc_y;
66 m_ccX = cc_x; m_ccY = cc_y;
73 m_distortionMatrixData[0] = kc1; m_distortionMatrixData[1] = kc2;
74 m_distortionMatrixData[2] = kc3; m_distortionMatrixData[3] = kc4;
79 void InitRemapUndistortion(
int sizeX,
int sizeY);
89 void UndistortImage(IplImage* src, IplImage* dst);
97 void UndistortImageFast( IplImage * src, IplImage* dst =
nullptr );
98 void SetUndistortImageFastInfo(
float in_dF1,
float in_dF2,
99 float in_dPrincipalX,
float in_dPrincipalY,
100 float in_Dist[4],
float ImageSizeX,
float ImageSizeY);
110 float m_distortionMatrixData[4];
112 float m_intrinsicMatrixData[9];
void SetCameraDistortion(float kc1, float kc2, float kc3, float kc4)
void SetPrincipalPoint(float cc_x, float cc_y)
DataCollection - Class to facilitate loading/accessing structured data.
CvMat * m_DistortionCoeffs
#define mitkClassMacroItkParent(className, SuperClassName)