32 #ifndef CXTEMPORALCALIBRATION_H_ 33 #define CXTEMPORALCALIBRATION_H_ 35 #include "org_custusx_calibration_Export.h" 68 void selectData(QString filename);
69 void setDebugFolder(QString path);
70 double calibrate(
bool* success);
74 double findCorrelation(
USFrameDataPtr data,
int frame_a,
int frame_b,
double maxShift,
double lastVal);
75 std::vector<double> computeProbeMovement();
76 std::vector<double> resample(std::vector<double> shift, std::vector<TimedPosition> time,
double resolution);
77 std::vector<double> computeTrackingMovement();
78 double findCorrelationShift(std::vector<double> frames, std::vector<double> tracking,
double resolution)
const;
79 double findLeastSquares(std::vector<double> frames, std::vector<double> tracking,
int shift)
const;
80 double findLSShift(std::vector<double> frames, std::vector<double> tracking,
double resolution)
const;
81 bool checkFrameMovementQuality(std::vector<double> pos);
82 void writePositions(QString title, std::vector<double> pos, std::vector<TimedPosition> time,
double shift);
87 std::vector<vtkImageDataPtr> mProcessedFrames;
90 mutable std::stringstream mDebugStream;
boost::shared_ptr< class USFrameData > USFrameDataPtr
boost::shared_ptr< TemporalCalibration > TemporalCalibrationPtr
std::map< double, double > TimeSeriesType
Namespace for all CustusX production code.