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

Compute the laplacian field of a RGB image before reconstructing the initial image through integration, using a filter as described in Convolution Pyramids, Farbman et al., 2011. More...

#include <LaplacianIntegrator.hpp>

Public Member Functions

 LaplacianIntegrator (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 laplacian field of a RGB image.
 
Program_composite
 Passthrough to output the result.
 
Texture _preproc
 Contains the computed laplacian field.
 
Texture _compo
 Contains the integrated result at input resolution.
 
int _scale
 The downscaling factor.
 

Detailed Description

Compute the laplacian field of a RGB image before reconstructing the initial image through integration, using a filter as described in Convolution Pyramids, Farbman et al., 2011.

Constructor & Destructor Documentation

◆ LaplacianIntegrator()

LaplacianIntegrator::LaplacianIntegrator ( 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 * LaplacianIntegrator::preprocId ( ) const
inline

The ID of the texture containing the laplacian field.

Returns
the laplacian texture ID.

◆ process()

void LaplacianIntegrator::process ( const Texture texture)

Filter a given input texture, first computing its laplacian field before performing integration.

Parameters
texturethe GPU ID of the texture

◆ resize()

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

Resize the internal buffers.

Parameters
widththe new width
heightthe new height

◆ texture()

const Texture * LaplacianIntegrator::texture ( ) const
inline

The ID of the texture containing the integration result.

Returns
the result texture ID.

The documentation for this class was generated from the following files: