11 #ifndef CXTEMPORALCALIBRATION_H_
12 #define CXTEMPORALCALIBRATION_H_
14 #include "org_custusx_calibration_Export.h"
48 void setDebugFolder(QString path);
49 double calibrate(
bool* success);
53 double findCorrelation(
USFrameDataPtr data,
int frame_a,
int frame_b,
double maxShift,
double lastVal);
54 std::vector<double> computeProbeMovement();
55 std::vector<double> resample(std::vector<double> shift, std::vector<TimedPosition> time,
double resolution);
56 std::vector<double> computeTrackingMovement();
57 double findCorrelationShift(std::vector<double> frames, std::vector<double> tracking,
double resolution)
const;
58 double findLeastSquares(std::vector<double> frames, std::vector<double> tracking,
int shift)
const;
59 double findLSShift(std::vector<double> frames, std::vector<double> tracking,
double resolution)
const;
60 bool checkFrameMovementQuality(std::vector<double> pos);
61 void writePositions(QString title, std::vector<double> pos, std::vector<TimedPosition> time,
double shift);
66 std::vector<vtkImageDataPtr> mProcessedFrames;
69 mutable std::stringstream mDebugStream;