![]() |
ImFusion SDK 4.3
|
#include <ImFusion/CT/Legacy/SequentialMotion.h>
Legacy sequential motion analysis for CBCT data. More...
Legacy sequential motion analysis for CBCT data.
Provides backward compatibility for sequential motion computations on cone-beam data.
Public Member Functions | |
| SequentialMotion (SharedImageSet &data) | |
| Constructor with reference to CBCT data to operate on. | |
| void | setOptThreshold (double val) |
| Set the improvement threshold above which an optimization result shall be used in motion estimation. | |
| bool | setSimRatio (int frame, double before, double after, int scheme=0) |
| Set the optimization result of a single frame. | |
| void | setGroundTruth (const std::vector< double > >) |
| Set the ground truth motion from outside. | |
| void | clear () |
| Clear similarity values and statistics. | |
| void | chooseFramesToUse (std::vector< int > &relIdx, std::vector< mat4 > &relMat) |
| Retrospectively picks the motion frames after all sequential optimization results are in. | |
| double | computeError (int par=-1, bool absolute=false, bool onlyOverall=false) |
| Compute the average motion pose values or distance (if ground truth is available). | |
| double | optThreshold () const |
| Return the optimization improvement threshold. | |
| const std::vector< double > & | gtMotion () const |
| Access to the ground truth parameters, if available. | |
| const ConeBeamFramePars & | gtPars () const |
| Access to the ground truth frame parameter instance. | |
| void | printLastFirstDiff (const double *pose=0) const |
| Print the parameter difference between last and first frame. | |
| const std::vector< std::vector< double > > & | simRatio () const |
| Access to the similarity measure improvement ratio values. | |
| std::vector< std::vector< double > > & | simRatio () |
| Write access to the similarity measure improvement ratio values. | |
| const std::vector< double > & | statistics () const |
| Access the statistics computed by the computeError method. | |
| const SharedImageSet & | data () const |
| Read-only access to the CBCT data. | |
| bool setSimRatio | ( | int | frame, |
| double | before, | ||
| double | after, | ||
| int | scheme = 0 ) |
Set the optimization result of a single frame.
The improvement ratio can be computed with different schemes. If it is sufficiently large or the optimization threshold is zero or smaller, true is returned, false otherwise.
| double computeError | ( | int | par = -1, |
| bool | absolute = false, | ||
| bool | onlyOverall = false ) |
Compute the average motion pose values or distance (if ground truth is available).
If par=0..5, the values are only computed for a single pose parameter. If the absolute flag is true, the similarity improvement values are compared to ground truth with moved frames, i.e. if their absolute position is changed.