11 #ifndef _AtlasFunctionalValues_h
12 #define _AtlasFunctionalValues_h
15 #include <vnl/vnl_vector.h>
38 template <
class TScalar>
190 std::cout <<
"Iter " << iter <<
" >> Objective = " <<
m_TotalValue <<
std::vector< TScalar > VectorType
Vector type (std).
Definition: AtlasFunctionalValues.h:49
TScalar GetTotalSparsity()
Returns the total regularity term.
Definition: AtlasFunctionalValues.h:139
VectorType m_Regularity
Vector of regularity terms.
Definition: AtlasFunctionalValues.h:218
AtlasFunctionalValues(int nobj, int nsubj)
Constructor with initialization of the number of deformable objects (resp. the number of subjects) to...
Definition: AtlasFunctionalValues.h:59
TScalar m_TotalL2Value
Total value of the functional ( prior not included).
Definition: AtlasFunctionalValues.h:239
VectorType m_DataTermPerObject
Vector of fidelity-to-data terms.
Definition: AtlasFunctionalValues.h:224
TScalar m_TotalSparsity
Sum on the subjects of the priors.
Definition: AtlasFunctionalValues.h:233
AtlasFunctionalValues(const AtlasFunctionalValues &other)
Copy constructor.
Definition: AtlasFunctionalValues.h:82
std::vector< VectorType > m_DataTerm
Vector of vectors of fidelity-to-data terms.
Definition: AtlasFunctionalValues.h:215
TScalar m_TotalValue
Total value of the functional ( prior included).
Definition: AtlasFunctionalValues.h:236
int m_NumberOfObjects
Number of deformable objects.
Definition: AtlasFunctionalValues.h:206
TScalar m_TotalDataTerm
Double sum on the subjects and the deformable objects of the fidelity-to-data terms.
Definition: AtlasFunctionalValues.h:227
void SetSparsity(TScalar r, int s)
Sets the prior of the s-th subject to r.
Definition: AtlasFunctionalValues.h:123
void Update()
Updates the different total values and the fidelity-to-data term per object.
Definition: AtlasFunctionalValues.h:154
void SetDataTerm(TScalar r, int s, int i)
Sets the fidelity-to-data term of the s-th subject to r.
Definition: AtlasFunctionalValues.h:117
void SetRegularity(TScalar r, int s)
Sets the regularity term of the s-th subject to r.
Definition: AtlasFunctionalValues.h:120
void SetDataTerm(VectorType dt, int s)
Sets the fidelity-to-data terms of the s-th subject to dt.
Definition: AtlasFunctionalValues.h:115
AtlasFunctionalValues * Clone()
Make a copy of the object.
Definition: AtlasFunctionalValues.h:102
std::vector< VectorType > GetDataTerm()
Returns the whole fidelity-to-data terms.
Definition: AtlasFunctionalValues.h:113
int m_NumberOfSubjects
Number of subjects.
Definition: AtlasFunctionalValues.h:209
void PrintIter(const int iter)
Displays the different parts of the functional with an indication of iteration iter.
Definition: AtlasFunctionalValues.h:188
void SetOutOfBox()
Sets the boolean OutOfBox to true.
Definition: AtlasFunctionalValues.h:128
Values of the functional during atlas estimation.
Definition: AtlasFunctionalValues.h:39
TScalar GetTotalL2Value()
Returns the value of the functional without the prior.
Definition: AtlasFunctionalValues.h:145
VectorType m_Sparsity
Vector of prior terms.
Definition: AtlasFunctionalValues.h:221
VectorType GetDataTermPerObject()
Returns a vector of fidelity-to-data terms.
Definition: AtlasFunctionalValues.h:131
TScalar GetTotalDataTerm()
Returns the total fidelity-to-data term.
Definition: AtlasFunctionalValues.h:133
TScalar GetTotalRegularity()
Returns the total regularity term.
Definition: AtlasFunctionalValues.h:136
TScalar GetTotalValue()
Returns the value of the functional with the prior.
Definition: AtlasFunctionalValues.h:142
bool m_OutOfBox
See AbstractDeformations::m_OutOfBox for details.
Definition: AtlasFunctionalValues.h:212
TScalar m_TotalRegularity
Sum on the subjects of the regularity terms.
Definition: AtlasFunctionalValues.h:230
bool IsOutOfBox()
Returns true if any point of the trajectory is out of box, false otherwise.
Definition: AtlasFunctionalValues.h:126