NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Various simple file IO utils, that may use open CV data types in their signatures. More...
Go to the source code of this file.
Namespaces | |
mitk | |
Functions | |
bool | mitk::CheckIfDirectoryContainsTrackingMatrices (const std::string &directory) |
Iterates through a directory to see if it contains any files that have a timestamp as a name, and end in .txt. More... | |
std::vector< std::string > | mitk::FindTrackingMatrixDirectories (const std::string &directory) |
Recursively hunts for all directories that look like they contain tracking matrices, <timestamp>.txt. More... | |
mitk::TimeStampsContainer | mitk::FindTrackingTimeStamps (std::string directory) |
Returns an mitk::TimeStampsContainer containing all the timestamps of tracking matrices. More... | |
std::vector< std::string > | mitk::FindVideoFrameMapFiles (const std::string directory) |
Recursively hunts for all files that look like they are a video frame map file, (.+)(framemap.log). More... | |
bool | mitk::ReadTrackerMatrix (const std::string &filename, cv::Mat &outputMatrix) |
Extracted from mitkVideoTrackerMatching, reads a 4x4 matrix into a cv::Mat, and if the matrix can't be read, will return a new matrix thats initialised according to the default OpenCV macros (i.e. unitinitialised). More... | |
bool | mitk::ReadTrackerMatrix (const std::string &filename, cv::Matx44d &outputMatrix) |
bool | mitk::SaveTrackerMatrix (const std::string &filename, cv::Mat &outputMatrix) |
Saves a 4x4 matrix;. More... | |
bool | mitk::SaveTrackerMatrix (const std::string &filename, cv::Matx44d &outputMatrix) |
See SaveTrackerMatrix(const std::string& filename, cv::Mat& outputMatrix);. More... | |
cv::VideoCapture * | mitk::InitialiseVideoCapture (std::string filename, bool ignoreErrors=false) |
Attempts to open a video capture and checks for errors. see trac 3718. This attempts to avoid problems caused by the subtle decoding errors. More... | |
std::vector< std::pair < unsigned long long, cv::Point3d > > | mitk::LoadTimeStampedPoints (const std::string &directory) |
Loads points from a directory, where each point is in a separate file, and the filename is a timestamp. More... | |
void | mitk::LoadTimeStampedPoints (std::vector< std::pair< unsigned long long, cv::Point3d > > &points, std::vector< mitk::ProjectedPointPair > &screenPoints, const std::string &fileName) |
Loads points from a flat text file with each line having the timestamp, the triangulated point, then the left and right screen points. More... | |
void | mitk::LoadTimeStampedPoints (std::vector< std::pair< unsigned long long, cv::Point2d > > &points, const std::string &fileName) |
Loads points from a flat text file with each line having the time stamp, followed by the on screen points. More... | |
void | mitk::SaveTimeStampedPoints (const std::vector< std::pair< unsigned long long, cv::Point3d > > &points, const std::string &fileName) |
Saves points to a flat text file. More... | |
void | mitk::SavePickedObjects (const std::vector< mitk::PickedObject > &points, std::ostream &os) |
Saves a vector of picked objects. More... | |
void | mitk::LoadPickedObjects (std::vector< mitk::PickedObject > &points, std::istream &is) |
Loads a vector of picked objects. More... | |
std::vector< cv::Mat > | mitk::LoadMatricesFromDirectory (const std::string &fullDirectoryName) |
Read a set of matrices, stored as plain text, 4x4 matrices from a directory and put them in a vector of 4x4 cvMats. More... | |
std::vector< cv::Mat > | mitk::LoadOpenCVMatricesFromDirectory (const std::string &fullDirectoryName) |
Read a set of matrices, stored in openCV xml matrix format from a directory and put them in a vector of 4x4 cvMats. More... | |
std::vector< cv::Mat > | mitk::LoadMatricesFromExtrinsicFile (const std::string &fullFileName) |
Load a set of matrices from a file describing the extrinsic parameters of a standard camera calibration. More... | |
void | mitk::LoadStereoCameraParametersFromDirectory (const std::string &directory, cv::Mat *leftCameraIntrinsic, cv::Mat *leftCameraDistortion, cv::Mat *rightCameraIntrinsic, cv::Mat *rightCameraDisortion, cv::Mat *rightToLeftRotationMatrix, cv::Mat *rightToLeftTranslationVector, cv::Mat *leftCameraToTracker) |
Load stereo camera parameters from a directory. More... | |
void | mitk::LoadCameraIntrinsicsFromPlainText (const std::string &filename, cv::Mat *cameraIntrinsic, cv::Mat *cameraDistortion) |
Load camera intrinsics from a plain text file and return results as cv::Mat. More... | |
void | mitk::LoadStereoTransformsFromPlainText (const std::string &filename, cv::Mat *rightToLeftRotationMatrix, cv::Mat *rightToLeftTranslationVector) |
Load stereo camera parameters from a plain text file cv::Mat. More... | |
void | mitk::LoadHandeyeFromPlainText (const std::string &filename, cv::Mat *leftCameraToTracker) |
Load the handeye matrix from a plain text file cv::Mat. More... | |
mitk::PickedPointList::Pointer | mitk::LoadPickedPointListFromDirectory (const std::string &directoryName, unsigned int frameNumber=0, unsigned long long timestamp=0, std::string channel="world", cv::Scalar scalar=cv::Scalar(255, 255, 255)) |
Create an mitk::PickedPointList object from a directory of mitk point files directory contains files line_00.mps .. line_nn.mps and points.mps. Point ID's are stored in the file, while line ID's are stored in the file name framenumber etc are settable by parameters. More... | |
Various simple file IO utils, that may use open CV data types in their signatures.