Utility data structure for hemispherical sampling and translational/rotational gradient computation. More...
#include <mitsuba/render/irrcache.h>
Classes | |
struct | SampleEntry |
Public Member Functions | |
HemisphereSampler (uint32_t M, uint32_t N) | |
uint32_t | getM () const |
Return the elevational resolution. More... | |
uint32_t | getN () const |
Return the azimuthal resolution. More... | |
SampleEntry & | operator() (uint32_t j, uint32_t k) |
Access a cell by index. More... | |
const SampleEntry & | operator() (uint32_t j, uint32_t k) const |
Access a cell by index (const version) More... | |
void | generateDirections (const Intersection &its) |
Generate a set of projected solid angle-distributed directions. More... | |
void | process (const Intersection &its) |
Compute mean distance, gradients etc. More... | |
const RotationalGradient & | getRotationalGradient () const |
Return the irradiance gradient with respect to rotation. More... | |
const RotationalGradient & | getTranslationalGradient () const |
Return the irradiance gradient with respect to translation. More... | |
Float | getHarmonicMeanDistance () const |
Return the average distance over all cells (harmonic mean) More... | |
Float | getMinimumDistance () const |
Return the minimum distance over all cells. More... | |
Float | getMinimumDistanceRestricted () const |
Return the minimum distance over all cells (>10 deg in elevation) More... | |
const Spectrum & | getIrradiance () const |
Return the computed irradiance. More... | |
virtual const Class * | getClass () const |
Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
Object () | |
Construct a new object. More... | |
int | getRefCount () const |
Return the current reference count. More... | |
void | incRef () const |
Increase the reference count of the object by one. More... | |
void | decRef (bool autoDeallocate=true) const |
Decrease the reference count of the object and possibly deallocate it. More... | |
virtual std::string | toString () const |
Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
static Class * | m_theClass |
Static Public Attributes inherited from Object | |
static Class * | m_theClass |
Pointer to the object's class descriptor. More... | |
Protected Member Functions | |
virtual | ~HemisphereSampler () |
Free all memory. More... | |
Protected Member Functions inherited from Object | |
virtual | ~Object () |
Virtual private deconstructor. (Will only be called by ref) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
static void | staticInitialization () |
Initializes the built-in reference count debugger (if enabled) More... | |
static void | staticShutdown () |
Free the memory taken by staticInitialization() More... | |
Utility data structure for hemispherical sampling and translational/rotational gradient computation.
Uses the improved translational gradients proposed in the paper "Improved radiance gradient computation" by Krivanek J., Gautron P., Bouatouch K., Pattanaik S. (Proceedings of SCCG 2005)
Allocate storage for a hemispherical sample with M elevation and N azimuthal samples.
|
protectedvirtual |
Free all memory.
void mitsuba::HemisphereSampler::generateDirections | ( | const Intersection & | its | ) |
Generate a set of projected solid angle-distributed directions.
|
virtual |
Retrieve this object's class.
Reimplemented from Object.
|
inline |
Return the average distance over all cells (harmonic mean)
|
inline |
Return the computed irradiance.
|
inline |
Return the elevational resolution.
|
inline |
Return the minimum distance over all cells.
|
inline |
Return the minimum distance over all cells (>10 deg in elevation)
|
inline |
Return the azimuthal resolution.
|
inline |
Return the irradiance gradient with respect to rotation.
|
inline |
Return the irradiance gradient with respect to translation.
|
inline |
Access a cell by index.
|
inline |
Access a cell by index (const version)
void mitsuba::HemisphereSampler::process | ( | const Intersection & | its | ) |
Compute mean distance, gradients etc.
|
static |