13 #ifndef OGLPLUS_IMAGES_TRANSFORMED_1107121519_HPP
14 #define OGLPLUS_IMAGES_TRANSFORMED_1107121519_HPP
26 template <
typename T,
typename std::
size_t N>
35 _filter(
const Mat4d& matrix)
39 template <
typename Extractor,
typename Sampler>
41 const Extractor& extractor,
47 extractor(sampler(0, 0, 0)),
61 typename Filtered::DefaultSampler(),
62 typename Filtered::FromRGB()
74 template <
typename T, std::
size_t N>
88 V3d x = (x_axis<0) ? -V3d::Unit(-x_axis) : V3d::Unit(x_axis);
89 V3d y = (y_axis<0) ? -V3d::Unit(-y_axis) : V3d::Unit(y_axis);
90 V3d z = (z_axis<0) ? -V3d::Unit(-z_axis) : V3d::Unit(z_axis);
93 x.x(), x.y(), x.z(), 0,
94 y.x(), y.y(), y.z(), 0,
95 z.x(), z.y(), z.z(), 0,
103 typename Filtered::DefaultFilter(),
104 typename Filtered::template MatrixTransformSampler<
105 typename Filtered::RepeatSample
106 >(_make_matrix(x_axis, y_axis, z_axis)),
107 typename Filtered::template FirstNComponents<N>()
115 #endif // include guard
Object< SamplerOps > Sampler
An oglplus_object encapsulating the OpenGL sampler functionality.
Definition: sampler.hpp:877
Base class for image filters.
Base class for various image filters.
Definition: filtered.hpp:32
A filter flipping/reorienting image axes.
Definition: transformed.hpp:75
Wrapper for (texture) image data.
Definition: image.hpp:45
Basic template for vector types.
Definition: fwd.hpp:43