Solve a membrane interpolation ("Poisson filling") problem, using a filter as described in Convolution Pyramids, Farbman et al., 2011.
More...
#include <PoissonFiller.hpp>
|
ConvolutionPyramid | _pyramid |
| The convolution pyramid.
|
|
Program * | _prepare |
| Shader to compute the colored border of black regions in the input image.
|
|
Program * | _composite |
| Composite the filled field with the input image.
|
|
Texture | _preproc |
| Contains the computed colored border.
|
|
Texture | _compo |
| Contains the composited filled result at input resolution.
|
|
int | _scale |
| The downscaling factor.
|
|
Solve a membrane interpolation ("Poisson filling") problem, using a filter as described in Convolution Pyramids, Farbman et al., 2011.
◆ PoissonFiller()
PoissonFiller::PoissonFiller |
( |
uint |
width, |
|
|
uint |
height, |
|
|
uint |
downscaling |
|
) |
| |
Constructor.
- Parameters
-
width | internal processing width |
height | internal processing height |
downscaling | downscaling factor for the internal convolution pyramid resolution |
◆ preprocId()
const Texture * PoissonFiller::preprocId |
( |
| ) |
const |
|
inline |
The ID of the texture containing the colored border.
- Returns
- the border texture ID.
◆ process()
void PoissonFiller::process |
( |
const Texture & |
texture | ) |
|
Fill black regions of an image in a smooth fashion, first computing its border color before performing filling.
- Parameters
-
texture | the GPU ID of the texture |
◆ resize()
void PoissonFiller::resize |
( |
uint |
width, |
|
|
uint |
height |
|
) |
| |
Resize the internal buffers.
- Parameters
-
width | the new width |
height | the new height |
◆ texture()
const Texture * PoissonFiller::texture |
( |
| ) |
const |
|
inline |
The ID of the texture containing the filled result.
- Returns
- the result texture ID.
The documentation for this class was generated from the following files: