|
latest version v1.9 - last update 10 Apr 2010 |
|
This functor use bicubic interpolation to approximate values between the pixels or elements of vectors and matrices. More...
#include <ltiBicubicInterpolator.h>


Public Member Functions | |
| bicubicInterpolator () | |
| bicubicInterpolator (const bicubicInterpolator &other) | |
| virtual | ~bicubicInterpolator () |
| virtual const char * | getTypeName () const |
| virtual T | apply (const vector< T > &src, const float &x) const |
| virtual T | apply (const float &x) const |
| virtual T | apply (const matrix< T > &srcdest, const float &row, const float &col) const |
| T | apply (const matrix< T > &src, const tpoint< float > &p) const |
| T | apply (const tpoint< float > &p) const |
| virtual T | apply (const float &row, const float &col) const |
| bool | getGradient (const matrix< T > &src, const float &row, const float &col, tpoint< T > &dest) const |
| bicubicInterpolator & | copy (const bicubicInterpolator &other) |
| bicubicInterpolator< T > & | operator= (const bicubicInterpolator< T > &other) |
| virtual functor * | clone () const |
This functor use bicubic interpolation to approximate values between the pixels or elements of vectors and matrices.
The type T of the template is the type of the elements of the vector or matrix used.
| lti::bicubicInterpolator< T >::bicubicInterpolator | ( | ) |
default constructor
| lti::bicubicInterpolator< T >::bicubicInterpolator | ( | const bicubicInterpolator< T > & | other | ) |
copy constructor
| other | the object to be copied |
| virtual lti::bicubicInterpolator< T >::~bicubicInterpolator | ( | ) | [virtual] |
destructor
| virtual T lti::bicubicInterpolator< T >::apply | ( | const float & | row, | |
| const float & | col | |||
| ) | const [virtual] |
Returns the interpolated value of the matrix specified with use() at the real valued position (row,col).
| row | which row | |
| col | which column |
Implements lti::scalarValuedInterpolation< T >.
| T lti::bicubicInterpolator< T >::apply | ( | const tpoint< float > & | p | ) | const [inline, virtual] |
Returns the interpolated value of the matrix specified with use() at the real valued position p.
| p | the real valued position to be interpolated. |
Implements lti::scalarValuedInterpolation< T >.
References lti::bicubicInterpolator< T >::apply(), lti::tpoint< T >::x, and lti::tpoint< T >::y.
| T lti::bicubicInterpolator< T >::apply | ( | const matrix< T > & | src, | |
| const tpoint< float > & | p | |||
| ) | const [inline, virtual] |
Returns the interpolated value of the matrix at the real valued position p.
| src | matrix<T> with the source data. | |
| p | the real valued position to be interpolated. |
Implements lti::scalarValuedInterpolation< T >.
References lti::bicubicInterpolator< T >::apply(), lti::tpoint< T >::x, and lti::tpoint< T >::y.
| virtual T lti::bicubicInterpolator< T >::apply | ( | const matrix< T > & | srcdest, | |
| const float & | row, | |||
| const float & | col | |||
| ) | const [virtual] |
Returns the interpolated value of the matrix at the real valued position (row,col).
| srcdest | matrix<T> with the source and destination data. | |
| row | which row | |
| col | which column |
Implements lti::scalarValuedInterpolation< T >.
| virtual T lti::bicubicInterpolator< T >::apply | ( | const float & | x | ) | const [virtual] |
Returns the interpolated value of the vector specified with use() at the real valued position x.
| x | the real valued position to be interpolated. |
Implements lti::scalarValuedInterpolation< T >.
| virtual T lti::bicubicInterpolator< T >::apply | ( | const vector< T > & | src, | |
| const float & | x | |||
| ) | const [virtual] |
Returns the interpolated value of the vector at the real valued position x.
| src | vector<T> with the source data. | |
| x | the real valued position to be interpolated. |
Implements lti::scalarValuedInterpolation< T >.
Referenced by lti::bicubicInterpolator< T >::apply().
| virtual functor* lti::bicubicInterpolator< T >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::scalarValuedInterpolation< T >.
| bicubicInterpolator& lti::bicubicInterpolator< T >::copy | ( | const bicubicInterpolator< T > & | other | ) |
copy data of "other" functor.
| other | the functor to be copied |
Reimplemented from lti::scalarValuedInterpolation< T >.
| bool lti::bicubicInterpolator< T >::getGradient | ( | const matrix< T > & | src, | |
| const float & | row, | |||
| const float & | col, | |||
| tpoint< T > & | dest | |||
| ) | const |
| virtual const char* lti::bicubicInterpolator< T >::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("bicubicInterpolator")
Reimplemented from lti::scalarValuedInterpolation< T >.
| bicubicInterpolator<T>& lti::bicubicInterpolator< T >::operator= | ( | const bicubicInterpolator< T > & | other | ) |
alias for copy member
| other | the functor to be copied |
Reimplemented from lti::equallySpacedSamplesInterpolator.