#include <mia/2d/vfregularizer.hh>
Public Types | |
typedef C2DFVectorfield | plugin_data |
typedef C2DFVectorfieldRegularizer | plugin_type |
typedef std::shared_ptr< C2DFVectorfieldRegularizer > | Pointer |
Public Types inherited from CPropertyFlagHolder | |
typedef std::set< const char * > | Set |
define the type of the set of flags More... | |
Public Member Functions | |
double | run (C2DFVectorfield &velocity, C2DFVectorfield &force, const C2DFVectorfield &deform) const |
void | set_size (const C2DBounds &size) |
virtual | ~C2DFVectorfieldRegularizer () |
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 * | type_descr |
Protected Member Functions | |
const C2DBounds & | get_size () const |
Regularize a 2D vector field with some model
This is the base class for a 2D vector field reguarlizer that is typically used in non-linear registration to evaluate a velocity field from a force field by applying some regularization model on the input data.
Definition at line 41 of file 2d/vfregularizer.hh.
Definition at line 44 of file 2d/vfregularizer.hh.
Definition at line 43 of file 2d/vfregularizer.hh.
typedef std::shared_ptr< C2DFVectorfieldRegularizer > C2DFVectorfieldRegularizer::Pointer |
Definition at line 48 of file 2d/vfregularizer.hh.
|
virtual |
|
protected |
double C2DFVectorfieldRegularizer::run | ( | C2DFVectorfield & | velocity, |
C2DFVectorfield & | force, | ||
const C2DFVectorfield & | deform | ||
) | const |
The work routine for the regularizer
[out] | velocity | the vector field that contains the reguarlized field |
[in] | force | the vector field that containes the unregularized field, e.g. a force field obtained from an image similarity measure. The field may be overwritten by the regularization operation. |
[in] | deform | the currently valid deformation |
void C2DFVectorfieldRegularizer::set_size | ( | const C2DBounds & | size | ) |
Sets the size of the vector fields that will be regularized. This method is implemented to give the regularizer a chance to initialize additional data structures. To do so a derived class has to override the method on_size_changed(). on_size_changed() is only called if the size changes.
|
static |
Definition at line 46 of file 2d/vfregularizer.hh.