HDK
|
This is the super-duper-class for all pixel filters in TIL. More...
#include <TIL_PixelFilter.h>
Public Member Functions | |
virtual | ~TIL_PixelFilter () |
virtual void | filterPlaneVirtual (const TIL_AdaptiveImage &src, TIL_Raster &dest, int planei, int plane_src_components) const =0 |
virtual void | combineSample (int ncomponents, exint nexisting_samples, float *existing, exint nnew_samples, const float *new_sample) const |
SYS_FORCE_INLINE bool | needsSquares () const |
SYS_FORCE_INLINE bool | needsWeights () const |
SYS_FORCE_INLINE bool | vetsSamples () const |
virtual bool | ownedBySingleton () const |
Protected Member Functions | |
TIL_PixelFilter () | |
TIL_PixelFilter (bool needs_squares, bool vets_samples, bool needs_weights) | |
This is the super-duper-class for all pixel filters in TIL.
Definition at line 26 of file TIL_PixelFilter.h.
|
inlinevirtual |
Definition at line 29 of file TIL_PixelFilter.h.
|
inlineprotected |
Definition at line 93 of file TIL_PixelFilter.h.
|
inlineprotected |
Definition at line 98 of file TIL_PixelFilter.h.
|
inlinevirtual |
When vetsSamples() returns true, this should be called so that the pixel filter can decide how to combine samples, instead of just summing. NOTE: nnew_samples is 1 when adding a new sample, but may be more than 1 when combining pixels into higher levels of the TIL_AdaptiveImage.
Reimplemented in TIL_PixelFilterMinMax< IS_MAX >.
Definition at line 44 of file TIL_PixelFilter.h.
|
pure virtual |
Implemented in TIL_PixelFilterT< SUBCLASS >, TIL_PixelFilterT< TIL_PixelFilterMinMax< IS_MAX > >, TIL_PixelFilterT< TIL_PixelFilterPower2Block >, TIL_PixelFilterT< TIL_PixelFilterBlurThreshold >, TIL_PixelFilterT< TIL_PixelFilterDebug< LEVEL_INTERP > >, TIL_PixelFilterT< TIL_PixelFilterPixelLevel >, and TIL_PixelFilterT< TIL_PixelFilterSampleCount >.
|
inline |
Returns true iff this filter requires TIL_AdaptiveImage to initialize TIL_AdaptiveImage::Level::mySumsOfSquares for the plane that this filter is applied to.
Definition at line 61 of file TIL_PixelFilter.h.
|
inline |
Returns true iff this filter requires TIL_AdaptiveImage to initialize TIL_AdaptiveImage::Level::myWeights from the adaptivity plane.
Definition at line 70 of file TIL_PixelFilter.h.
|
inlinevirtual |
Returns false iff TIL_AdaptiveImage needs to create/delete it. true means that it's owned globally, so will be deleted when the process exits.
Reimplemented in TIL_PixelFilterMinMax< IS_MAX >, TIL_PixelFilterPower2Block, TIL_PixelFilterSampleCount, and TIL_PixelFilterPixelLevel.
Definition at line 87 of file TIL_PixelFilter.h.
|
inline |
Returns true iff TIL_AdaptiveImage needs to call combineSample when inserting a sample to a plane with this filter.
Definition at line 79 of file TIL_PixelFilter.h.