Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
LaplacianIntegrator.hpp
1#pragma once
2#include "processing/ConvolutionPyramid.hpp"
3#include "resources/Texture.hpp"
4#include "resources/ResourcesManager.hpp"
5#include "Common.hpp"
6
12
13public:
19 LaplacianIntegrator(uint width, uint height, uint downscaling);
20
24 void process(const Texture& texture);
25
30 void resize(uint width, uint height);
31
35 const Texture * texture() const { return &_compo; }
36
40 const Texture * preprocId() const { return &_preproc; }
41
42private:
48 int _scale;
49};
Implements a multiscale scheme for approximating convolution with large filters. This is the basis of...
Definition: ConvolutionPyramid.hpp:13
Compute the laplacian field of a RGB image before reconstructing the initial image through integratio...
Definition: LaplacianIntegrator.hpp:11
const Texture * preprocId() const
Definition: LaplacianIntegrator.hpp:40
Program * _composite
Passthrough to output the result.
Definition: LaplacianIntegrator.hpp:45
void process(const Texture &texture)
Definition: LaplacianIntegrator.cpp:22
const Texture * texture() const
Definition: LaplacianIntegrator.hpp:35
void resize(uint width, uint height)
Definition: LaplacianIntegrator.cpp:53
Texture _preproc
Contains the computed laplacian field.
Definition: LaplacianIntegrator.hpp:46
Program * _prepare
Shader to compute the laplacian field of a RGB image.
Definition: LaplacianIntegrator.hpp:44
int _scale
The downscaling factor.
Definition: LaplacianIntegrator.hpp:48
ConvolutionPyramid _pyramid
The convolution pyramid.
Definition: LaplacianIntegrator.hpp:43
Texture _compo
Contains the integrated result at input resolution.
Definition: LaplacianIntegrator.hpp:47
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