13 #ifndef mitkUndistortCameraImage_h
14 #define mitkUndistortCameraImage_h
17 #include <MitkOpenCVVideoSupportExports.h>
18 #include "itkObject.h"
22 #include <opencv2/core.hpp>
23 #include <opencv2/core/types_c.h>
47 itkFactorylessNewMacro(Self);
56 m_fcX = fc_x; m_fcY = fc_y;
63 m_ccX = cc_x; m_ccY = cc_y;
70 m_distortionMatrixData[0] = kc1; m_distortionMatrixData[1] = kc2;
71 m_distortionMatrixData[2] = kc3; m_distortionMatrixData[3] = kc4;
76 void InitRemapUndistortion(
int sizeX,
int sizeY);
86 void UndistortImage(IplImage* src, IplImage* dst);
94 void UndistortImageFast( IplImage * src, IplImage* dst =
nullptr );
95 void SetUndistortImageFastInfo(
float in_dF1,
float in_dF2,
96 float in_dPrincipalX,
float in_dPrincipalY,
97 float in_Dist[4],
float ImageSizeX,
float ImageSizeY);
107 float m_distortionMatrixData[4];
109 float m_intrinsicMatrixData[9];