My Project
|
generic base class for transformations More...
#include <mia/core/transformation.hh>
Public Types | |
typedef D | Data |
typedef for the data type to be transformed by this transformation | |
typedef I | InterpolatorFactory |
type of the interpolator used by this transformation | |
Public Member Functions | |
double | get_energy_penalty () const |
double | get_energy_penalty_and_gradient (CDoubleVector &gradient) const |
bool | has_energy_penalty () const |
std::shared_ptr< D > | operator() (const D &input) const |
std::shared_ptr< D > | operator() (const D &input, const I &ipf_override) const |
void | set_interpolator_factory (const I &ipf) |
Transformation (const I &ipf) | |
virtual | ~Transformation () |
![]() | |
const std::string & | get_source_format () const |
void | set_source_format (const std::string &format) |
![]() | |
CAttributedData () | |
CAttributedData (const CAttributedData &org) | |
CAttributedData (PAttributeMap attr) | |
CAttributedData & | operator= (const CAttributedData &org) |
Assignemt operator. | |
const PAttribute | get_attribute (const std::string &key) const |
CAttributeMap::const_iterator | begin_attributes () const |
CAttributeMap::const_iterator | end_attributes () const |
void | set_attribute (const std::string &key, PAttribute attr) |
void | set_attributes (CAttributeMap::const_iterator begin, CAttributeMap::const_iterator end) |
void | set_attribute (const std::string &key, const std::string &value) |
template<typename T > | |
void | set_attribute (const std::string &key, const T &value) |
void | set_attribute (const std::string &key, const char *value) |
const std::string | get_attribute_as_string (const std::string &key) const |
returns the requested attribute as string, returns an empty string if attribute doesn't exist | |
template<typename T > | |
const T | get_attribute_as (const std::string &key) const |
template<typename T > | |
const T | get_attribute_as (const std::string &key, T default_value) const |
void | delete_attribute (const std::string &key) |
bool | has_attribute (const std::string &key) const |
void | print (std::ostream &os) const |
Static Public Attributes | |
static const char * | type_descr = "transform" |
interface type for plugin implementation and search | |
Protected Member Functions | |
const I & | get_interpolator_factory () const |
generic base class for transformations
Template of a generic tranformation function
D | data type of the object to be transformed |
I | interpolator factory to create resampler for type D |
Definition at line 44 of file transformation.hh.
typedef D Transformation< D, I >::Data |
typedef for the data type to be transformed by this transformation
Definition at line 54 of file transformation.hh.
typedef I Transformation< D, I >::InterpolatorFactory |
type of the interpolator used by this transformation
Definition at line 57 of file transformation.hh.
|
virtual |
Definition at line 134 of file transformation.hh.
Transformation< D, I >::Transformation | ( | const I & | ipf | ) |
Constructor to create the transformstion
ipf | the interpolator factory to be used to create the interpolators for image interpolation |
Definition at line 128 of file transformation.hh.
double Transformation< D, I >::get_energy_penalty | ( | ) | const |
Definition at line 170 of file transformation.hh.
double Transformation< D, I >::get_energy_penalty_and_gradient | ( | CDoubleVector & | gradient | ) | const |
Evaluate the transformation penalty and it's gradient
[in,out] | gradient | at input an allocated vector of the size equal to the size of the degrees of freedom of the transformation, at output the enegy penalty gradient with respect to the transformation parameters |
Definition at line 163 of file transformation.hh.
|
protected |
Definition at line 145 of file transformation.hh.
bool Transformation< D, I >::has_energy_penalty | ( | ) | const |
Definition at line 190 of file transformation.hh.
std::shared_ptr< D > Transformation< D, I >::operator() | ( | const D & | input | ) | const |
Apply the transformation to the input data
input |
Definition at line 157 of file transformation.hh.
References input.
std::shared_ptr< D > Transformation< D, I >::operator() | ( | const D & | input, |
const I & | ipf_override | ||
) | const |
Apply the transformation to the input data
input | |
ipf_override | overide the image interpolator |
Definition at line 151 of file transformation.hh.
References input.
void Transformation< D, I >::set_interpolator_factory | ( | const I & | ipf | ) |
Set the interpolator factory
ipf | the new interpolator factory |
Definition at line 139 of file transformation.hh.
|
static |
interface type for plugin implementation and search
Definition at line 49 of file transformation.hh.