Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::UndistortCameraImage Class Reference

#include <mitkUndistortCameraImage.h>

Inheritance diagram for mitk::UndistortCameraImage:
Collaboration diagram for mitk::UndistortCameraImage:

Public Member Functions

 mitkClassMacroItkParent (UndistortCameraImage, itk::Object)
 
Pointer Clone () const
 
void SetFocalLength (float fc_x, float fc_y)
 Initialization ///. More...
 
void SetPrincipalPoint (float cc_x, float cc_y)
 
void SetCameraDistortion (float kc1, float kc2, float kc3, float kc4)
 
void InitRemapUndistortion (int sizeX, int sizeY)
 
mitk::Point2D UndistortPixel (const mitk::Point2D &src)
 USAGE ///. More...
 
void UndistortImage (IplImage *src, IplImage *dst)
 
void UndistortImageFast (IplImage *src, IplImage *dst=nullptr)
 
void SetUndistortImageFastInfo (float in_dF1, float in_dF2, float in_dPrincipalX, float in_dPrincipalY, float in_Dist[4], float ImageSizeX, float ImageSizeY)
 
 UndistortCameraImage ()
 
 ~UndistortCameraImage () override
 

Static Public Member Functions

static Pointer New ()
 

Protected Attributes

float m_ccX
 
float m_ccY
 
float m_fcX
 
float m_fcY
 
float m_distortionMatrixData [4]
 
float m_intrinsicMatrixData [9]
 
CvMat * m_mapX
 
CvMat * m_mapY
 
CvMat m_intrinsicMatrix
 
CvMat m_distortionMatrix
 
IplImage * m_tempImage
 
CvMat * m_DistortionCoeffs
 
CvMat * m_CameraMatrix
 

Detailed Description

Definition at line 43 of file mitkUndistortCameraImage.h.

Constructor & Destructor Documentation

◆ UndistortCameraImage()

mitk::UndistortCameraImage::UndistortCameraImage ( )

The list of internal camera parameters:

  • Focal length: The focal length in pixels is stored in m_fcX and m_fcY.
  • Principal point: The principal point coordinates are stored in the m_ccX and m_ccY.
  • Skew coefficient: The skew coefficient defining the angle between the x and y pixel axes is stored in the scalar alpha_c = 0.
  • Distortions: The image distortion coefficients (radial and tangential distortions) are stored in the 4x1 vector.

Definition at line 24 of file mitkUndistortCameraImage.cpp.

References m_tempImage.

◆ ~UndistortCameraImage()

mitk::UndistortCameraImage::~UndistortCameraImage ( )
override

Definition at line 29 of file mitkUndistortCameraImage.cpp.

References m_tempImage.

Member Function Documentation

◆ Clone()

Pointer mitk::UndistortCameraImage::Clone ( ) const

◆ InitRemapUndistortion()

void mitk::UndistortCameraImage::InitRemapUndistortion ( int  sizeX,
int  sizeY 
)

◆ mitkClassMacroItkParent()

mitk::UndistortCameraImage::mitkClassMacroItkParent ( UndistortCameraImage  ,
itk::Object   
)

◆ New()

static Pointer mitk::UndistortCameraImage::New ( )
static

◆ SetCameraDistortion()

void mitk::UndistortCameraImage::SetCameraDistortion ( float  kc1,
float  kc2,
float  kc3,
float  kc4 
)
inline

Definition at line 69 of file mitkUndistortCameraImage.h.

◆ SetFocalLength()

void mitk::UndistortCameraImage::SetFocalLength ( float  fc_x,
float  fc_y 
)
inline

Initialization ///.

Definition at line 55 of file mitkUndistortCameraImage.h.

◆ SetPrincipalPoint()

void mitk::UndistortCameraImage::SetPrincipalPoint ( float  cc_x,
float  cc_y 
)
inline

Definition at line 62 of file mitkUndistortCameraImage.h.

◆ SetUndistortImageFastInfo()

void mitk::UndistortCameraImage::SetUndistortImageFastInfo ( float  in_dF1,
float  in_dF2,
float  in_dPrincipalX,
float  in_dPrincipalY,
float  in_Dist[4],
float  ImageSizeX,
float  ImageSizeY 
)

Definition at line 186 of file mitkUndistortCameraImage.cpp.

References m_CameraMatrix, m_DistortionCoeffs, m_mapX, and m_mapY.

◆ UndistortImage()

void mitk::UndistortCameraImage::UndistortImage ( IplImage *  src,
IplImage *  dst 
)

◆ UndistortImageFast()

void mitk::UndistortCameraImage::UndistortImageFast ( IplImage *  src,
IplImage *  dst = nullptr 
)

Definition at line 125 of file mitkUndistortCameraImage.cpp.

References m_mapX, m_mapY, and m_tempImage.

◆ UndistortPixel()

mitk::Point2D mitk::UndistortCameraImage::UndistortPixel ( const mitk::Point2D src)

USAGE ///.

undistort one pixel coordinate using floating point accuracy...

Definition at line 37 of file mitkUndistortCameraImage.cpp.

References m_ccX, m_ccY, m_distortionMatrixData, m_fcX, and m_fcY.

Member Data Documentation

◆ m_CameraMatrix

CvMat* mitk::UndistortCameraImage::m_CameraMatrix
protected

Definition at line 121 of file mitkUndistortCameraImage.h.

Referenced by SetUndistortImageFastInfo().

◆ m_ccX

float mitk::UndistortCameraImage::m_ccX
protected

Definition at line 106 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage(), and UndistortPixel().

◆ m_ccY

float mitk::UndistortCameraImage::m_ccY
protected

Definition at line 106 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage(), and UndistortPixel().

◆ m_DistortionCoeffs

CvMat* mitk::UndistortCameraImage::m_DistortionCoeffs
protected

Definition at line 120 of file mitkUndistortCameraImage.h.

Referenced by SetUndistortImageFastInfo().

◆ m_distortionMatrix

CvMat mitk::UndistortCameraImage::m_distortionMatrix
protected

Definition at line 114 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage().

◆ m_distortionMatrixData

float mitk::UndistortCameraImage::m_distortionMatrixData[4]
protected

Definition at line 108 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage(), and UndistortPixel().

◆ m_fcX

float mitk::UndistortCameraImage::m_fcX
protected

Definition at line 106 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage(), and UndistortPixel().

◆ m_fcY

float mitk::UndistortCameraImage::m_fcY
protected

Definition at line 106 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage(), and UndistortPixel().

◆ m_intrinsicMatrix

CvMat mitk::UndistortCameraImage::m_intrinsicMatrix
protected

Definition at line 114 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage().

◆ m_intrinsicMatrixData

float mitk::UndistortCameraImage::m_intrinsicMatrixData[9]
protected

Definition at line 110 of file mitkUndistortCameraImage.h.

Referenced by UndistortImage().

◆ m_mapX

CvMat* mitk::UndistortCameraImage::m_mapX
protected

Definition at line 112 of file mitkUndistortCameraImage.h.

Referenced by SetUndistortImageFastInfo(), and UndistortImageFast().

◆ m_mapY

CvMat * mitk::UndistortCameraImage::m_mapY
protected

Definition at line 112 of file mitkUndistortCameraImage.h.

Referenced by SetUndistortImageFastInfo(), and UndistortImageFast().

◆ m_tempImage

IplImage* mitk::UndistortCameraImage::m_tempImage
protected

The documentation for this class was generated from the following files: