MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::UndistortCameraImage Class Reference

#include <mitkUndistortCameraImage.h>

Inheritance diagram for mitk::UndistortCameraImage:

Public Member Functions

 mitkClassMacroItkParent (UndistortCameraImage, itk::Object)
 
 itkFactorylessNewMacro (Self)
 
 itkCloneMacro (Self)
 
void SetFocalLength (float fc_x, float fc_y)
 Initialization ///.
 
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 ///.
 
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
 

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

◆ ~UndistortCameraImage()

mitk::UndistortCameraImage::~UndistortCameraImage ( )
override

Definition at line 30 of file mitkUndistortCameraImage.cpp.

Member Function Documentation

◆ InitRemapUndistortion()

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

◆ itkCloneMacro()

mitk::UndistortCameraImage::itkCloneMacro ( Self )

◆ itkFactorylessNewMacro()

mitk::UndistortCameraImage::itkFactorylessNewMacro ( Self )

◆ mitkClassMacroItkParent()

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

◆ SetCameraDistortion()

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

Definition at line 68 of file mitkUndistortCameraImage.h.

◆ SetFocalLength()

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

Initialization ///.

Definition at line 54 of file mitkUndistortCameraImage.h.

◆ SetPrincipalPoint()

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

Definition at line 61 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 191 of file mitkUndistortCameraImage.cpp.

◆ UndistortImage()

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

Definition at line 102 of file mitkUndistortCameraImage.cpp.

◆ UndistortImageFast()

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

Definition at line 130 of file mitkUndistortCameraImage.cpp.

◆ UndistortPixel()

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

USAGE ///.

undistort one pixel coordinate using floating point accuracy...

Definition at line 38 of file mitkUndistortCameraImage.cpp.

Member Data Documentation

◆ m_CameraMatrix

CvMat* mitk::UndistortCameraImage::m_CameraMatrix
protected

Definition at line 120 of file mitkUndistortCameraImage.h.

◆ m_ccX

float mitk::UndistortCameraImage::m_ccX
protected

Definition at line 105 of file mitkUndistortCameraImage.h.

◆ m_ccY

float mitk::UndistortCameraImage::m_ccY
protected

Definition at line 105 of file mitkUndistortCameraImage.h.

◆ m_DistortionCoeffs

CvMat* mitk::UndistortCameraImage::m_DistortionCoeffs
protected

Definition at line 119 of file mitkUndistortCameraImage.h.

◆ m_distortionMatrix

CvMat mitk::UndistortCameraImage::m_distortionMatrix
protected

Definition at line 113 of file mitkUndistortCameraImage.h.

◆ m_distortionMatrixData

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

Definition at line 107 of file mitkUndistortCameraImage.h.

◆ m_fcX

float mitk::UndistortCameraImage::m_fcX
protected

Definition at line 105 of file mitkUndistortCameraImage.h.

◆ m_fcY

float mitk::UndistortCameraImage::m_fcY
protected

Definition at line 105 of file mitkUndistortCameraImage.h.

◆ m_intrinsicMatrix

CvMat mitk::UndistortCameraImage::m_intrinsicMatrix
protected

Definition at line 113 of file mitkUndistortCameraImage.h.

◆ m_intrinsicMatrixData

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

Definition at line 109 of file mitkUndistortCameraImage.h.

◆ m_mapX

CvMat* mitk::UndistortCameraImage::m_mapX
protected

Definition at line 111 of file mitkUndistortCameraImage.h.

◆ m_mapY

CvMat * mitk::UndistortCameraImage::m_mapY
protected

Definition at line 111 of file mitkUndistortCameraImage.h.

◆ m_tempImage

IplImage* mitk::UndistortCameraImage::m_tempImage
protected

Definition at line 115 of file mitkUndistortCameraImage.h.


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