|  | 
|  | TemplateImageSampler (const Layer *layer) | 
|  | TemplateImageSampler (const Image *img) | 
|  | TemplateImageSampler (std::shared_ptr< const Image > sharedImage) | 
| ReturnType | sample2D (const dvec2 &pos) const | 
| ReturnType | sample (double x, double y) const | 
|  | SpatialSampler (const SpatialEntity &spatialEntity, CoordinateSpace space=CoordinateSpace::Data) | 
| ReturnType | sample (const dvec3 &pos) const | 
| ReturnType | sample (const vec3 &pos) const | 
| ReturnType | sample (const dvec2 &pos) const | 
| ReturnType | sample (const vec2 &pos) const | 
| ReturnType | sample (const dvec3 &pos, CoordinateSpace space) const | 
| ReturnType | sample (const vec3 &pos, CoordinateSpace space) const | 
| ReturnType | sample (const dvec2 &pos, CoordinateSpace space) const | 
| ReturnType | sample (const vec2 &pos, CoordinateSpace space) const | 
| bool | withinBounds (const dvec3 &pos) const | 
| bool | withinBounds (const vec3 &pos) const | 
| bool | withinBounds (const dvec2 &pos) const | 
| bool | withinBounds (const vec2 &pos) const | 
| bool | withinBounds (const dvec3 &pos, CoordinateSpace space) const | 
| bool | withinBounds (const vec3 &pos, CoordinateSpace space) const | 
| bool | withinBounds (const dvec2 &pos, CoordinateSpace space) const | 
| bool | withinBounds (const vec2 &pos, CoordinateSpace space) const | 
| mat3 | getBasis () const | 
| mat4 | getModelMatrix () const | 
| mat4 | getWorldMatrix () const | 
| const SpatialCoordinateTransformer & | getCoordinateTransformer () const | 
template<typename ReturnType, typename DataType>
class inviwo::TemplateImageSampler< ReturnType, DataType >
TemplateImageSampler<T,P> aids sampling of images of a given type (T) using Bi-Linear Interpolation with precision (P). 
A helper class to aid sampling of images of a given type (T). Expects the input to be on the range [0 1]. Eg., input of (0,0) will return the color of the bottom left pixel and (1,1) will return then top right pixel. Output values are bi-linear interpolated between the 4 nearest neighbors.
The template parameter P should be either double or float. When T is either float our double P should be the same.