Medical Imaging Interaction Toolkit  2016.11.0
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 ()
 
virtual ~UndistortCameraImage ()
 

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 45 of file mitkUndistortCameraImage.h.

Constructor & Destructor Documentation

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 28 of file mitkUndistortCameraImage.cpp.

References m_tempImage.

mitk::UndistortCameraImage::~UndistortCameraImage ( )
virtual

Definition at line 33 of file mitkUndistortCameraImage.cpp.

Member Function Documentation

Pointer mitk::UndistortCameraImage::Clone ( ) const
void mitk::UndistortCameraImage::InitRemapUndistortion ( int  sizeX,
int  sizeY 
)
mitk::UndistortCameraImage::mitkClassMacroItkParent ( UndistortCameraImage  ,
itk::Object   
)
static Pointer mitk::UndistortCameraImage::New ( )
static
void mitk::UndistortCameraImage::SetCameraDistortion ( float  kc1,
float  kc2,
float  kc3,
float  kc4 
)
inline

Definition at line 71 of file mitkUndistortCameraImage.h.

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

Initialization ///.

Definition at line 57 of file mitkUndistortCameraImage.h.

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

Definition at line 64 of file mitkUndistortCameraImage.h.

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 190 of file mitkUndistortCameraImage.cpp.

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

Definition at line 105 of file mitkUndistortCameraImage.cpp.

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

Definition at line 129 of file mitkUndistortCameraImage.cpp.

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

USAGE ///.

undistort one pixel coordinate using floating point accuracy...

Definition at line 41 of file mitkUndistortCameraImage.cpp.

Member Data Documentation

CvMat* mitk::UndistortCameraImage::m_CameraMatrix
protected

Definition at line 123 of file mitkUndistortCameraImage.h.

float mitk::UndistortCameraImage::m_ccX
protected

Definition at line 108 of file mitkUndistortCameraImage.h.

float mitk::UndistortCameraImage::m_ccY
protected

Definition at line 108 of file mitkUndistortCameraImage.h.

CvMat* mitk::UndistortCameraImage::m_DistortionCoeffs
protected

Definition at line 122 of file mitkUndistortCameraImage.h.

CvMat mitk::UndistortCameraImage::m_distortionMatrix
protected

Definition at line 116 of file mitkUndistortCameraImage.h.

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

Definition at line 110 of file mitkUndistortCameraImage.h.

float mitk::UndistortCameraImage::m_fcX
protected

Definition at line 108 of file mitkUndistortCameraImage.h.

float mitk::UndistortCameraImage::m_fcY
protected

Definition at line 108 of file mitkUndistortCameraImage.h.

CvMat mitk::UndistortCameraImage::m_intrinsicMatrix
protected

Definition at line 116 of file mitkUndistortCameraImage.h.

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

Definition at line 112 of file mitkUndistortCameraImage.h.

CvMat* mitk::UndistortCameraImage::m_mapX
protected

Definition at line 114 of file mitkUndistortCameraImage.h.

CvMat * mitk::UndistortCameraImage::m_mapY
protected

Definition at line 114 of file mitkUndistortCameraImage.h.

IplImage* mitk::UndistortCameraImage::m_tempImage
protected

Definition at line 118 of file mitkUndistortCameraImage.h.

Referenced by UndistortCameraImage().


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