PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
This program tests the temporal calibration algorithm by computing the time by which the inputted tracker data lags the inputted US video data. More...
#include "PlusConfigure.h"
#include "igsioTrackedFrame.h"
#include "vtkIGSIOSequenceIO.h"
#include "vtkPlusTemporalCalibrationAlgo.h"
#include "vtkIGSIOTrackedFrameList.h"
#include <vtkAxis.h>
#include <vtkChartXY.h>
#include <vtkContextScene.h>
#include <vtkPNGWriter.h>
#include <vtkPlot.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkTable.h>
#include <vtkWindowToImageFilter.h>
#include <vtkXMLDataElement.h>
#include <vtkXMLUtilities.h>
#include <vtksys/CommandLineArguments.hxx>
Go to the source code of this file.
Functions | |
int | CompareCalibrationResults (const TemporalCalibrationResult &calibResult, const TemporalCalibrationResult &baselineCalibResult) |
int | main (int argc, char **argv) |
PlusStatus | ReadCalibrationResultsFromFile (const std::string &resultSaveFilename, TemporalCalibrationResult &calibResult) |
void | SaveMetricPlot (const char *filename, vtkTable *videoPositionMetric, vtkTable *trackerPositionMetric, std::string &xAxisLabel, std::string &yAxisLabel) |
void | WriteCalibrationResultToFile (const std::string &outputFileName, const TemporalCalibrationResult &calibResult) |
This program tests the temporal calibration algorithm by computing the time by which the inputted tracker data lags the inputted US video data.
The inputted data is assumed to be collected by a US probe imaging a planar object; furthermore, it is assumed that the probe is undergoing uni-dirctional periodic motion in the direction perpendicular to the plane's face (e.g., moving the probe in a repeating up-and-down fashion while imaging the bottom of a water bath). The inputted data is assumed to contain at least 5 full periods (although the algorithm may work for fewer periods it has not been tested under these conditions.
Definition in file TemporalCalibration.cxx.
int CompareCalibrationResults | ( | const TemporalCalibrationResult & | calibResult, |
const TemporalCalibrationResult & | baselineCalibResult | ||
) |
Definition at line 162 of file TemporalCalibration.cxx.
Definition at line 186 of file TemporalCalibration.cxx.
PlusStatus ReadCalibrationResultsFromFile | ( | const std::string & | resultSaveFilename, |
TemporalCalibrationResult & | calibResult | ||
) |
Definition at line 120 of file TemporalCalibration.cxx.
void SaveMetricPlot | ( | const char * | filename, |
vtkTable * | videoPositionMetric, | ||
vtkTable * | trackerPositionMetric, | ||
std::string & | xAxisLabel, | ||
std::string & | yAxisLabel | ||
) |
Definition at line 65 of file TemporalCalibration.cxx.
void WriteCalibrationResultToFile | ( | const std::string & | outputFileName, |
const TemporalCalibrationResult & | calibResult | ||
) |
Definition at line 109 of file TemporalCalibration.cxx.