#include <vectorfield.h>
Inheritance diagram for mimas::vectorfield< Tensor >:
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. |
This class takes samples of a tensor and stores them in a vector field (
,
.
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.
Definition at line 27 of file vectorfield.h.
typedef boost::numeric::ublas::vector< double > mimas::vectorfield< Tensor >::Vector |
Definition at line 32 of file vectorfield.h.
mimas::vectorfield< Tensor >::vectorfield | ( | int | width, | |
int | height, | |||
const Tensor & | aTensor | |||
) |
Constructor.
width | Width of vector field. | |
height | Height of vector field. | |
aTensor | Tensor to take samples from. |
Vector mimas::vectorfield< Tensor >::operator() | ( | const Vector & | v | ) | const [inline] |
boost::multi_array< Vector, 2 > mimas::vectorfield< Tensor >::data [protected] |