mimas::vectorfield< Tensor > Class Template Reference
[Image warping]

Precomputed tensor. More...

#include <vectorfield.h>

Inheritance diagram for mimas::vectorfield< Tensor >:

Inheritance graph
[legend]
Collaboration diagram for mimas::vectorfield< Tensor >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef boost::numeric::ublas::vector<
double
Vector

Public Member Functions

 vectorfield (int width, int height, const Tensor &aTensor)
 Constructor.
Vector operator() (const Vector &v) const
 Function operator.

Protected Attributes

boost::multi_array< Vector, 2 > data
 The samples are stored in this array.

Detailed Description

template<class Tensor>
class mimas::vectorfield< Tensor >

Precomputed tensor.

This class takes samples $t((x_1,x_2)^\top-\vec{m})$ of a tensor and stores them in a vector field ($\vec{m}=(\frac{\mathrm{width}}{2},\frac{\mathrm{height}}{2})$, $(x_1,x_2)\in\{(0,0),(1,0),\ldots, (\mathrm{width}-1,\mathrm{height}-1)\}$.

Using a precomputed field for warping several images, instead of using the same tensor function a couple of times, usually is faster but also more memory-consuming.

Todo:
Use integer vectors
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Wed Jul 07 14:33:00 UTC 2004
See also:
warp
Todo:
Replace with boost::multi_array

Definition at line 27 of file vectorfield.h.


Member Typedef Documentation

template<class Tensor>
typedef boost::numeric::ublas::vector< double > mimas::vectorfield< Tensor >::Vector

Definition at line 32 of file vectorfield.h.


Constructor & Destructor Documentation

template<class Tensor>
mimas::vectorfield< Tensor >::vectorfield ( int  width,
int  height,
const Tensor &  aTensor 
)

Constructor.

Parameters:
width Width of vector field.
height Height of vector field.
aTensor Tensor to take samples from.


Member Function Documentation

template<class Tensor>
Vector mimas::vectorfield< Tensor >::operator() ( const Vector v  )  const [inline]

Function operator.

Definition at line 39 of file vectorfield.h.


Member Data Documentation

template<class Tensor>
boost::multi_array< Vector, 2 > mimas::vectorfield< Tensor >::data [protected]

The samples are stored in this array.

Definition at line 48 of file vectorfield.h.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:48 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...