NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | List of all members
mitk::StereoCameraCalibration Class Reference

Does a stereo camera calibration from one/two directories, each containing a set of image files. More...

Inheritance diagram for mitk::StereoCameraCalibration:
Inheritance graph
[legend]
Collaboration diagram for mitk::StereoCameraCalibration:
Collaboration graph
[legend]

Public Member Functions

 mitkClassMacroItkParent (StereoCameraCalibration, itk::Object) static Pointer New()
 
void LoadExistingIntrinsics (const std::string &directoryName)
 Tries to load existing intrinsic params from a previous calibration. More...
 
void LoadExistingRightToLeft (const std::string &directoryName)
 Tries to load existing r2l params from a previous calibration. More...
 
double Calibrate (const std::string &leftDirectoryName, const std::string &rightDirectoryName, const int &numberOfFrames, const int &numberCornersX, const int &numberCornersY, const double &sizeSquareMillimeters, const mitk::Point2D &pixelScaleFactor, const std::string &outputDirectoryName, const bool &writeImages)
 Calibration function that returns the reprojection error (squared error). More...
 

Protected Member Functions

 StereoCameraCalibration ()
 
virtual ~StereoCameraCalibration ()
 
 StereoCameraCalibration (const StereoCameraCalibration &)
 
StereoCameraCalibrationoperator= (const StereoCameraCalibration &)
 

Detailed Description

Does a stereo camera calibration from one/two directories, each containing a set of image files.

Constructor & Destructor Documentation

mitk::StereoCameraCalibration::StereoCameraCalibration ( )
protected
mitk::StereoCameraCalibration::~StereoCameraCalibration ( )
protectedvirtual
mitk::StereoCameraCalibration::StereoCameraCalibration ( const StereoCameraCalibration )
protected

Member Function Documentation

double mitk::StereoCameraCalibration::Calibrate ( const std::string leftDirectoryName,
const std::string rightDirectoryName,
const int numberOfFrames,
const int numberCornersX,
const int numberCornersY,
const double &  sizeSquareMillimeters,
const mitk::Point2D &  pixelScaleFactor,
const std::string outputDirectoryName,
const bool &  writeImages 
)

Calibration function that returns the reprojection error (squared error).

Parameters
numberOfFramesif != 0, will pick either left or right directory, scan for image pairs (sequential files), try to extract chessboards on all frames, and build a list of suitable pairs, and then randomly select a suitable number of frames.
squareSizeInMillimetresthe physical size of the square as printed out on the calibration object.
pixelScaleFactorthe caller can specify a multiplier for the number of pixels in each direction to scale up/down the image.
void mitk::StereoCameraCalibration::LoadExistingIntrinsics ( const std::string directoryName)

Tries to load existing intrinsic params from a previous calibration.

void mitk::StereoCameraCalibration::LoadExistingRightToLeft ( const std::string directoryName)

Tries to load existing r2l params from a previous calibration.

mitk::StereoCameraCalibration::mitkClassMacroItkParent ( StereoCameraCalibration  ,
itk::Object   
)
StereoCameraCalibration& mitk::StereoCameraCalibration::operator= ( const StereoCameraCalibration )
protected

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