$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::algebra::h_mat< d, T > Struct Template Reference

#include <mln/algebra/h_mat.hh>

Public Member Functions

 h_mat ()
 h_mat (const mat< d+1, d+1, T > &x)
mat< n, m, T_1 () const
const Toperator() (unsigned i, unsigned j) const
Toperator() (unsigned i, unsigned j)
void set_all (const T &val)
unsigned size () const
mat< m, n, Tt () const

Static Public Member Functions

static mat identity ()

Static Public Attributes

static const mat< n, m, TId

Public Types

enum  { N = d, M = d, dim = d * d }
enum  
typedef Object< void > category
typedef T coord
typedef mat< n, m, Texact_t

Detailed Description

template<unsigned d, typename T>
struct mln::algebra::h_mat< d, T >

N-Dimensional matrix with homogeneous coordinates.

Definition at line 61 of file algebra/h_mat.hh.

Constructor & Destructor Documentation

template<unsigned d, typename T>
mln::algebra::h_mat< d, T >::h_mat ( )

Constructor without argument.

template<unsigned d, typename T>
mln::algebra::h_mat< d, T >::h_mat ( const mat< d+1, d+1, T > &  x)

Constructor with the underlying matrix.

Member Function Documentation

mat<n,m,T> mln::algebra::mat< n, m, T >::_1 ( ) const
inherited

Return the inverse of the matrix.

Only compile on square matrix.

static mat mln::algebra::mat< n, m, T >::identity ( )
staticinherited
const T& mln::algebra::mat< n, m, T >::operator() ( unsigned  i,
unsigned  j 
) const
inherited
T& mln::algebra::mat< n, m, T >::operator() ( unsigned  i,
unsigned  j 
)
inherited
void mln::algebra::mat< n, m, T >::set_all ( const T val)
inherited
unsigned mln::algebra::mat< n, m, T >::size ( ) const
inherited
mat<m,n,T> mln::algebra::mat< n, m, T >::t ( ) const
inherited

Return the transpose of the matrix.

Member Data Documentation

const mat<n,m,T> mln::algebra::mat< n, m, T >::Id
staticinherited

Definition at line 97 of file algebra/mat.hh.

Member Typedef Documentation

typedef Object<void> mln::Object< mat< n, m, T > >::category
inherited

Definition at line 106 of file object.hh.

typedef T mln::algebra::mat< n, m, T >::coord
inherited

Definition at line 92 of file algebra/mat.hh.

typedef mat< n, m, T > mln::Object< mat< n, m, T > >::exact_t
inherited

Definition at line 105 of file object.hh.

Member Enumeration Documentation

template<unsigned d, typename T>
anonymous enum

Dimension is the 'natural' one (3 for 3D), not the one of the vector (dim + 1)

Enumerator:
N 
M 
dim 

Definition at line 64 of file algebra/h_mat.hh.

anonymous enum
inherited

Definition at line 93 of file algebra/mat.hh.