Base class for a general cost function. More...
#include <mia/template/fullcost.hh>
Public Types | |
typedef TFullCost< Transform > | plugin_data |
helper type for plug-in handling More... | |
typedef TFullCost< Transform > | plugin_type |
helper type for plug-in handling More... | |
typedef std::shared_ptr< TFullCost< Transform > > | Pointer |
The shatred pointer type for this cost function. More... | |
typedef Transform::Size | Size |
Typedef of the size of the data considered by this cost function. More... | |
Public Types inherited from CPropertyFlagHolder | |
typedef std::set< const char * > | Set |
define the type of the set of flags More... | |
Public Member Functions | |
double | cost_value (const Transform &t) const |
double | cost_value () const |
double | evaluate (const Transform &t, CDoubleVector &gradient) const |
bool | get_full_size (Size &size) const |
void | reinit () |
void | set_size (const Size &size) |
TFullCost (double weight) | |
Public Member Functions inherited from CProductBase | |
const char * | get_init_string () const |
void | set_init_string (const char *init) |
void | set_module (PPluginModule module) |
Public Member Functions inherited from CPropertyFlagHolder | |
void | add (const char *property) |
Set | get_missing_properties (const CPropertyFlagHolder &testset) const |
bool | has (const char *property) const |
bool | has_all_in (const CPropertyFlagHolder &testset) const |
virtual | ~CPropertyFlagHolder () |
Static Public Attributes | |
static const char * | data_descr |
helper string for plug-in handling More... | |
static const char * | type_descr |
helper string for plug-in handling More... | |
Protected Member Functions | |
const Size & | get_current_size () const |
double | get_weight () const |
Base class for a general cost function.
Transform | the transformation type used to achieve registration by optimizing the cost function |
This base class for a cost function does not make any assumptions about what kind of cost is measured. It only considers a transformation to be applied to input data or to measure a transformation penalty.
Definition at line 43 of file template/fullcost.hh.
typedef TFullCost<Transform> TFullCost< Transform >::plugin_data |
helper type for plug-in handling
Definition at line 50 of file template/fullcost.hh.
typedef TFullCost<Transform> TFullCost< Transform >::plugin_type |
helper type for plug-in handling
Definition at line 53 of file template/fullcost.hh.
typedef std::shared_ptr<TFullCost<Transform> > TFullCost< Transform >::Pointer |
The shatred pointer type for this cost function.
Definition at line 62 of file template/fullcost.hh.
Typedef of the size of the data considered by this cost function.
Definition at line 47 of file template/fullcost.hh.
Initialize the cost function with a weight
weight |
double TFullCost< Transform >::cost_value | ( | const Transform & | t | ) | const |
Evaluate the weighted cost value
t | tranformation to be applied |
double TFullCost< Transform >::cost_value | ( | ) | const |
Evaluate the weighted cost value without transforming the image
double TFullCost< Transform >::evaluate | ( | const Transform & | t, |
CDoubleVector & | gradient | ||
) | const |
Evaluate the weighted cost value and the weighted gradient in optimizer space given a current transformation.
t | tranformation to be applied | |
[out] | gradient | gradient in optimizer space |
|
protected |
Get the full size of the registration problem and see if everybody agrees on it.
size | if it is at Size() at input input it will simply be overwritten, if it is not equal to Size(), it will be checked that the size is equal to the local one |
|
protected |
void TFullCost< Transform >::reinit | ( | ) |
Re-initialalize the cost function
Set the size of the cost function
|
static |
helper string for plug-in handling
Definition at line 59 of file template/fullcost.hh.
|
static |
helper string for plug-in handling
Definition at line 56 of file template/fullcost.hh.