Rendu
A lightweight rendering engine for experimentations
Main Page
Modules
Namespaces
Classes
Files
Related Pages
File List
Loading...
Searching...
No Matches
src
engine
processing
PoissonFiller.hpp
1
#pragma once
2
#include "processing/ConvolutionPyramid.hpp"
3
#include "resources/Texture.hpp"
4
#include "resources/ResourcesManager.hpp"
5
#include "Common.hpp"
6
11
class
PoissonFiller
{
12
13
public
:
19
PoissonFiller
(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
42
private
:
43
ConvolutionPyramid
_pyramid
;
44
Program
*
_prepare
;
45
Program
*
_composite
;
46
Texture
_preproc
;
47
Texture
_compo
;
48
int
_scale
;
49
};
ConvolutionPyramid
Implements a multiscale scheme for approximating convolution with large filters. This is the basis of...
Definition:
ConvolutionPyramid.hpp:13
PoissonFiller
Solve a membrane interpolation ("Poisson filling") problem, using a filter as described in Convolutio...
Definition:
PoissonFiller.hpp:11
PoissonFiller::process
void process(const Texture &texture)
Definition:
PoissonFiller.cpp:21
PoissonFiller::texture
const Texture * texture() const
Definition:
PoissonFiller.hpp:35
PoissonFiller::_scale
int _scale
The downscaling factor.
Definition:
PoissonFiller.hpp:48
PoissonFiller::_composite
Program * _composite
Composite the filled field with the input image.
Definition:
PoissonFiller.hpp:45
PoissonFiller::_compo
Texture _compo
Contains the composited filled result at input resolution.
Definition:
PoissonFiller.hpp:47
PoissonFiller::preprocId
const Texture * preprocId() const
Definition:
PoissonFiller.hpp:40
PoissonFiller::_preproc
Texture _preproc
Contains the computed colored border.
Definition:
PoissonFiller.hpp:46
PoissonFiller::_prepare
Program * _prepare
Shader to compute the colored border of black regions in the input image.
Definition:
PoissonFiller.hpp:44
PoissonFiller::resize
void resize(uint width, uint height)
Definition:
PoissonFiller.cpp:51
PoissonFiller::_pyramid
ConvolutionPyramid _pyramid
The convolution pyramid.
Definition:
PoissonFiller.hpp:43
Program
Represents a group of shaders used for rendering.
Definition:
Program.hpp:31
Texture
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition:
Texture.hpp:12
Generated by
Doxygen
1.9.5 - Theme by
Simon Rodriguez