$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::fun::x2x::translation< n, C > Struct Template Reference

#include <mln/fun/x2x/translation.hh>

Public Member Functions

 translation ()
 translation (const algebra::vec< n, C > &t)
invert inv () const
algebra::vec< n, C > inverse (const algebra::vec< n, C > &v) const
const matrixmat () const
algebra::vec< n, C > operator() (const algebra::vec< n, C > &v) const
void set_t (const algebra::vec< n, C > &t)
const algebra::vec< n, C > & t () const

Static Public Attributes

static const unsigned dim

Protected Member Functions

void update ()

Protected Attributes

matrix m_
algebra::vec< n, C > t_

Public Types

typedef algebra::vec< n, C > argument
typedef Function_v2v< void > category
typedef C data_t
typedef translation< n, C > exact_t
typedef translation< n, C > invert
typedef algebra::h_mat< dim, C > matrix
typedef void mutable_result
typedef algebra::vec< n, C > result

Detailed Description

template<unsigned n, typename C>
struct mln::fun::x2x::translation< n, C >

Translation function-object.

Definition at line 52 of file x2x/translation.hh.

Constructor & Destructor Documentation

template<unsigned n, typename C>
mln::fun::x2x::translation< n, C >::translation ( )

Constructor without argument.

template<unsigned n, typename C>
mln::fun::x2x::translation< n, C >::translation ( const algebra::vec< n, C > &  t)

Constructor with the translation vector.

Member Function Documentation

template<unsigned n, typename C>
invert mln::fun::x2x::translation< n, C >::inv ( ) const

Return the inverse function.

template<unsigned n, typename C>
algebra::vec<n,C> mln::fun::x2x::translation< n, C >::inverse ( const algebra::vec< n, C > &  v) const
const matrix& mln::fun::internal::x2x_linear_impl_< algebra::vec< n, C > , C, translation< n, C > >::mat ( ) const
inherited
template<unsigned n, typename C>
algebra::vec<n,C> mln::fun::x2x::translation< n, C >::operator() ( const algebra::vec< n, C > &  v) const

Perform the translation of the given vector.

Reimplemented from mln::fun::internal::x2x_linear_impl_< algebra::vec< n, C >, C, translation< n, C > >.

template<unsigned n, typename C>
void mln::fun::x2x::translation< n, C >::set_t ( const algebra::vec< n, C > &  t)

Set a net translation vector.

template<unsigned n, typename C>
const algebra::vec<n,C>& mln::fun::x2x::translation< n, C >::t ( ) const

Return the translation vector.

template<unsigned n, typename C>
void mln::fun::x2x::translation< n, C >::update ( )
protected

Member Data Documentation

const unsigned mln::fun::internal::x2x_linear_impl_< algebra::vec< n, C > , C, translation< n, C > >::dim
staticinherited

Definition at line 51 of file x2x_linear_impl.hh.

matrix mln::fun::internal::x2x_linear_impl_< algebra::vec< n, C > , C, translation< n, C > >::m_
protectedinherited

Definition at line 68 of file x2x_linear_impl.hh.

template<unsigned n, typename C>
algebra::vec<n,C> mln::fun::x2x::translation< n, C >::t_
protected

Definition at line 85 of file x2x/translation.hh.

Member Typedef Documentation

typedef algebra::vec< n, C > mln::fun::internal::x2x_linear_impl_< algebra::vec< n, C > , C, translation< n, C > >::argument
inherited

Definition at line 53 of file x2x_linear_impl.hh.

typedef Function_v2v<void> mln::Function_v2v< translation< n, C > >::category
inherited

Definition at line 134 of file function.hh.

template<unsigned n, typename C>
typedef C mln::fun::x2x::translation< n, C >::data_t

Type of the underlying data stored in vectors and matrices.

Definition at line 59 of file x2x/translation.hh.

typedef translation< n, C > mln::Object< translation< n, C > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<unsigned n, typename C>
typedef translation<n,C> mln::fun::x2x::translation< n, C >::invert

Type of the inverse function.

Definition at line 62 of file x2x/translation.hh.

Definition at line 55 of file x2x_linear_impl.hh.

typedef void mln::Function_v2v< translation< n, C > >::mutable_result
inherited

Definition at line 135 of file function.hh.

typedef algebra::vec< n, C > mln::fun::internal::x2x_linear_impl_< algebra::vec< n, C > , C, translation< n, C > >::result
inherited

Definition at line 54 of file x2x_linear_impl.hh.