|
| ImageSampler (const Layer *layer) |
|
| ImageSampler (std::shared_ptr< const Layer > layer) |
|
| ImageSampler (const Image *img) |
|
| ImageSampler (std::shared_ptr< const Image > sharedImage) |
|
ReturnType | sample (double x, double y, CoordinateSpace space) const |
|
ReturnType | sample (double x, double y) const |
|
| SpatialSampler (const SpatialEntity &spatialEntity, CoordinateSpace space=CoordinateSpace::Data) |
|
dvec4 | sample (const dvec3 &pos) const |
|
dvec4 | sample (const vec3 &pos) const |
|
dvec4 | sample (const dvec2 &pos) const |
|
dvec4 | sample (const vec2 &pos) const |
|
dvec4 | sample (const dvec3 &pos, CoordinateSpace space) const |
|
dvec4 | sample (const vec3 &pos, CoordinateSpace space) const |
|
dvec4 | sample (const dvec2 &pos, CoordinateSpace space) const |
|
dvec4 | 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 = dvec4>
class inviwo::ImageSampler< ReturnType >
ImageSampler aids sampling of images using Bi-Linear Interpolation.
A helper class to aid sampling of images. 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.