Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
PoissonFiller Class Reference

Solve a membrane interpolation ("Poisson filling") problem, using a filter as described in Convolution Pyramids, Farbman et al., 2011. More...

#include <PoissonFiller.hpp>

Public Member Functions

 PoissonFiller (uint width, uint height, uint downscaling)
 
void process (const Texture &texture)
 
void resize (uint width, uint height)
 
const Texturetexture () const
 
const TexturepreprocId () const
 

Private Attributes

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.
 

Detailed Description

Solve a membrane interpolation ("Poisson filling") problem, using a filter as described in Convolution Pyramids, Farbman et al., 2011.

Constructor & Destructor Documentation

◆ PoissonFiller()

PoissonFiller::PoissonFiller ( uint  width,
uint  height,
uint  downscaling 
)

Constructor.

Parameters
widthinternal processing width
heightinternal processing height
downscalingdownscaling factor for the internal convolution pyramid resolution

Member Function Documentation

◆ 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
texturethe GPU ID of the texture

◆ resize()

void PoissonFiller::resize ( uint  width,
uint  height 
)

Resize the internal buffers.

Parameters
widththe new width
heightthe 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: