NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Does a stereo camera calibration from one/two directories, each containing a set of image files. More...
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 &) | |
StereoCameraCalibration & | operator= (const StereoCameraCalibration &) |
Does a stereo camera calibration from one/two directories, each containing a set of image files.
|
protected |
|
protectedvirtual |
|
protected |
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).
numberOfFrames | if != 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. |
squareSizeInMillimetres | the physical size of the square as printed out on the calibration object. |
pixelScaleFactor | the 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 | |||
) |
|
protected |