[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
BilinearInterpolatingAccessor< ACCESSOR, VALUETYPE > Class Template Reference |
Bilinear interpolation at non-integer positions. More...
#include <vigra/interpolating_accessor.hxx>
Public Types | |
typedef VALUETYPE | value_type |
Public Member Functions | |
BilinearInterpolatingAccessor (ACCESSOR a) | |
template<class ITERATOR > | |
value_type | operator() (ITERATOR const &i, float x, float y) const |
template<class ITERATOR > | |
value_type | unchecked (ITERATOR const &i, float x, float y) const |
Bilinear interpolation at non-integer positions.
This accessor allows an image be accessed at arbitrary non-integer coordinates and performs an bi-linear interpolation to obtain a pixel value. It uses the given ACCESSOR (which is usually the accessor originally associated with the iterator) to access data.
#include <vigra/accessor.hxx> Namespace: vigra
Required Interface:
typedef VALUETYPE value_type |
the iterators' pixel type
BilinearInterpolatingAccessor | ( | ACCESSOR | a | ) |
init from given accessor
value_type operator() | ( | ITERATOR const & | i, |
float | x, | ||
float | y | ||
) | const |
Interpolate the data item at a non-integer position. Ensure that no outside pixels are accessed if (x, y) is near the image border (as long as 0 <= x <= width-1, 0 <= y <= height-1).
value_type unchecked | ( | ITERATOR const & | i, |
float | x, | ||
float | y | ||
) | const |
Interpolate the data item at a non-integer position. This function works as long as 0 <= x < width-1, 0 <= y < height-1. It is slightly faster than operator()
.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|