Generic interface to separable image reconstruction filters. More...
#include <mitsuba/core/rfilter.h>
Public Types | |
enum | EBoundaryCondition { EClamp = 0, ERepeat, EMirror, EZero, EOne } |
When resampling data to a different resolution using Resampler::resample(), this enumeration specifies how lookups outside of the input domain are handled. More... | |
Public Member Functions | |
Float | getRadius () const |
Return the filter's width. More... | |
int | getBorderSize () const |
Return the block border size required when rendering with this filter. More... | |
virtual Float | eval (Float x) const =0 |
Evaluate the filter function. More... | |
Float | evalDiscretized (Float x) const |
Perform a lookup into the discretized version. More... | |
void | serialize (Stream *stream, InstanceManager *manager) const |
Serialize the filter to a binary data stream. More... | |
void | configure () |
Configure the object (called once after construction) More... | |
virtual const Class * | getClass () const |
Retrieve this object's class. More... | |
Public Member Functions inherited from mitsuba::ConfigurableObject | |
virtual void | setParent (ConfigurableObject *parent) |
Notify the ConfigurableObject instance about its parent object. More... | |
virtual void | addChild (const std::string &name, ConfigurableObject *child) |
Add a child (default implementation throws an error) More... | |
void | addChild (ConfigurableObject *child) |
Add an unnamed child. More... | |
const std::string & | getID () const |
Return the identifier associated with this instance (or "unnamed") More... | |
void | setID (const std::string &name) |
Set the identifier associated with this instance. More... | |
const Properties & | getProperties () const |
Return the properties object that was originally used to create this instance. More... | |
Public Member Functions inherited from mitsuba::SerializableObject | |
SerializableObject (Stream *stream, InstanceManager *manager) | |
Unserialize a serializable object. 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 mitsuba::ConfigurableObject | |
static Class * | m_theClass |
Static Public Attributes inherited from mitsuba::SerializableObject | |
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 | |
ReconstructionFilter (const Properties &props) | |
Create a new reconstruction filter. More... | |
ReconstructionFilter (Stream *stream, InstanceManager *manager) | |
Unserialize a filter. More... | |
virtual | ~ReconstructionFilter () |
Virtual destructor. More... | |
Protected Member Functions inherited from mitsuba::ConfigurableObject | |
virtual | ~ConfigurableObject () |
Virtual destructor. More... | |
ConfigurableObject (const Properties &props) | |
Construct a configurable object. More... | |
ConfigurableObject (Stream *stream, InstanceManager *manager) | |
Unserialize a configurable object. More... | |
Protected Member Functions inherited from mitsuba::SerializableObject | |
SerializableObject () | |
Construct a serializable object. More... | |
virtual | ~SerializableObject () |
Virtual deconstructor. More... | |
Protected Member Functions inherited from Object | |
virtual | ~Object () |
Virtual private deconstructor. (Will only be called by ref) More... | |
Protected Attributes | |
Float | m_radius |
Float | m_scaleFactor |
Float | m_values [31+1] |
int | m_borderSize |
Protected Attributes inherited from mitsuba::ConfigurableObject | |
Properties | m_properties |
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... | |
Generic interface to separable image reconstruction filters.
When resampling bitmaps or adding radiance-valued samples to a rendering in progress, Mitsuba first convolves them with a so-called image reconstruction filter. Various kinds are implemented as subclasses of this interface.
Because image filters are generally too expensive to evaluate for each sample, the implementation of this class internally precomputes an discrete representation (resolution given by MTS_FILTER_RESOLUTION)
When resampling data to a different resolution using Resampler::resample(), this enumeration specifies how lookups outside of the input domain are handled.
|
protected |
Create a new reconstruction filter.
|
protected |
Unserialize a filter.
|
protectedvirtual |
Virtual destructor.
|
virtual |
Configure the object (called once after construction)
Reimplemented from mitsuba::ConfigurableObject.
Evaluate the filter function.
Perform a lookup into the discretized version.
|
inline |
Return the block border size required when rendering with this filter.
|
virtual |
Retrieve this object's class.
Reimplemented from mitsuba::ConfigurableObject.
|
inline |
Return the filter's width.
|
virtual |
Serialize the filter to a binary data stream.
Reimplemented from mitsuba::ConfigurableObject.
|
protected |
|
protected |
|
protected |
|
static |
|
protected |