[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
BilinearInterpolatingAccessor Class Template Reference | ![]() |
---|
Bilinear interpolation at non-integer positions. More...
#include "vigra/interpolating_accessor.hxx"
Public Types | |
typedef VALUETYPE | value_type |
Public Methods | |
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 |
Detailed Description |
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:
ITERATOR iter; ACCESSOR a; VALUETYPE destvalue; float s; int x, y; destvalue = s * a(iter, x, y) + s * a(iter, x, y);
|
the iterators' pixel type |
|
init from given accessor |
|
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). |
|
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 |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|