2#include "resources/Texture.hpp"
3#include "resources/ResourcesManager.hpp"
30 void setFilters(
const float h1[5],
float h2,
const float g[3]);
68 float _h1[5] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
70 float _g[3] = {0.0f, 0.0f, 0.0f};
Implements a multiscale scheme for approximating convolution with large filters. This is the basis of...
Definition: ConvolutionPyramid.hpp:13
Texture _shifted
Contains the input data padded to the right size.
Definition: ConvolutionPyramid.hpp:64
void setFilters(const float h1[5], float h2, const float g[3])
Definition: ConvolutionPyramid.cpp:128
void process(const Texture &texture)
Definition: ConvolutionPyramid.cpp:42
glm::ivec2 _resolution
Resolution expected for the input texture.
Definition: ConvolutionPyramid.hpp:72
float _g[3]
g filter coefficients.
Definition: ConvolutionPyramid.hpp:70
std::vector< Texture > _levelsOut
The filtered levels of the pyramid.
Definition: ConvolutionPyramid.hpp:66
void resize(uint width, uint height)
Definition: ConvolutionPyramid.cpp:140
unsigned int height()
Definition: ConvolutionPyramid.hpp:56
int _padding
Additional padding.
Definition: ConvolutionPyramid.hpp:74
const Texture * texture() const
Definition: ConvolutionPyramid.hpp:46
Program * _upscale
Pyramid ascending pass shader.
Definition: ConvolutionPyramid.hpp:60
const int _size
Size of the filter.
Definition: ConvolutionPyramid.hpp:73
Program * _padder
Padding helper shader.
Definition: ConvolutionPyramid.hpp:62
Program * _filter
Filtering shader for the last pyramid level.
Definition: ConvolutionPyramid.hpp:61
Program * _downscale
Pyramid descending pass shader.
Definition: ConvolutionPyramid.hpp:59
float _h2
h2 filter multiplier.
Definition: ConvolutionPyramid.hpp:69
unsigned int width()
Definition: ConvolutionPyramid.hpp:51
std::vector< Texture > _levelsIn
The initial levels of the pyramid.
Definition: ConvolutionPyramid.hpp:65
float _h1[5]
h1 filter coefficients.
Definition: ConvolutionPyramid.hpp:68
Represents a group of shaders used for rendering.
Definition: Program.hpp:31
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition: Texture.hpp:12