Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::SplatList Struct Reference

List storage for the image-space contributions ("splats") of a path sample generated using PathSampler. More...

#include <mitsuba/bidir/pathsampler.h>

Public Types

typedef std::pair< Point2,
Spectrum
Splat
 Represents a screen-space splat produced by a path sampling technique. More...
 

Public Member Functions

 SplatList ()
 
void append (const Point2 &samplePos, const Spectrum &value)
 Appends a splat entry to the list. More...
 
void accum (size_t i, const Spectrum &value)
 Increases the contribution of an existing splat. More...
 
size_t size () const
 Returns the number of contributions. More...
 
void clear ()
 Clear the splat list. More...
 
const Point2getPosition (size_t i) const
 Return the position associated with a splat in the list. More...
 
const SpectrumgetValue (size_t i) const
 Return the spectral contribution associated with a splat in the list. More...
 
void normalize (const Bitmap *importanceMap=NULL)
 Normalize the splat list. More...
 
std::string toString () const
 Return a string representation. More...
 

Public Attributes

std::vector< Splatsplats
 A series of splats associated with the current sample. More...
 
Float luminance
 Combined luminance of all splats in this sample. More...
 
int nSamples
 Total number of samples in the splat list. More...
 

Detailed Description

List storage for the image-space contributions ("splats") of a path sample generated using PathSampler.

Member Typedef Documentation

Represents a screen-space splat produced by a path sampling technique.

Constructor & Destructor Documentation

mitsuba::SplatList::SplatList ( )
inline

Member Function Documentation

void mitsuba::SplatList::accum ( size_t  i,
const Spectrum value 
)
inline

Increases the contribution of an existing splat.

void mitsuba::SplatList::append ( const Point2 samplePos,
const Spectrum value 
)
inline

Appends a splat entry to the list.

void mitsuba::SplatList::clear ( )
inline

Clear the splat list.

const Point2& mitsuba::SplatList::getPosition ( size_t  i) const
inline

Return the position associated with a splat in the list.

const Spectrum& mitsuba::SplatList::getValue ( size_t  i) const
inline

Return the spectral contribution associated with a splat in the list.

void mitsuba::SplatList::normalize ( const Bitmap importanceMap = NULL)

Normalize the splat list.

This function divides all splats so that they have unit luminance (though it leaves the luminance field untouched). When given an optional importance map in 2-stage MLT approaches, it divides the splat values by the associated importance map values

size_t mitsuba::SplatList::size ( ) const
inline

Returns the number of contributions.

std::string mitsuba::SplatList::toString ( ) const

Return a string representation.

Member Data Documentation

Float mitsuba::SplatList::luminance

Combined luminance of all splats in this sample.

int mitsuba::SplatList::nSamples

Total number of samples in the splat list.

std::vector<Splat> mitsuba::SplatList::splats

A series of splats associated with the current sample.


The documentation for this struct was generated from the following file: