SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP Class Reference

General filter using delegate to perform pixel-by-pixel computation with result image properties specified. More...

#include <spatmod/imagefiltergeneral.h>

Inheritance diagram for SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP:
Inheritance graph
[legend]

List of all members.

Public Types

typedef FastDelegate< bool(const
SAMPLEITERATOR *itTgt, const
SAMPLEITERATOR *itSrc, bool
valid) 
DELEGATE )
typedef FastDelegate< bool(INT32
row, INT32 col, const
SAMPLEITERATOR *itTgt, const
SAMPLEITERATOR *itSrc, bool
valid) 
DELEGATE_RC )

Public Member Functions

 FILTER_GENERAL_CHGPROP (STAGE *pPreviousStage, bool TakeOwnership, const PIXEL &PixelProperties, DELEGATE_RC delegate)
 FILTER_GENERAL_CHGPROP (STAGE *pPreviousStage, bool TakeOwnership, const PIXEL &PixelProperties, DELEGATE delegate)
virtual ~FILTER_GENERAL_CHGPROP ()

Detailed Description

General filter using delegate to perform pixel-by-pixel computation with result image properties specified.

This filter will call a specified delegate for each pixel to compute the resulting target pixel. Two variants of this delegate are supported, permitting use of the pixel row and column in computation if required.


Member Typedef Documentation

typedef FastDelegate<bool(const SAMPLEITERATOR *itTgt, const SAMPLEITERATOR *itSrc, bool valid) SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP::DELEGATE)

Delegate for processing pixel.

typedef FastDelegate<bool(INT32 row, INT32 col, const SAMPLEITERATOR *itTgt, const SAMPLEITERATOR *itSrc, bool valid) SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP::DELEGATE_RC)

Delegate for processing pixel with row/column parameters.


Constructor & Destructor Documentation

SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP::FILTER_GENERAL_CHGPROP ( STAGE pPreviousStage,
bool  TakeOwnership,
const PIXEL PixelProperties,
DELEGATE  delegate 
)

Construct with minimal delegate.

The delegate will be passed SAMPLEITERATOR arrays for the target and source, along with a "valid" value indicating whether the source pixel is valid or not. Delegate must return true to indicate that result is valid or false if not. If result is valid delegate must use target iterator to store resulting sample values.

Parameters:
pPreviousStage Pointer to previous stage
TakeOwnership Filter takes ownership of previous stage and will delete when needed
PixelProperties Result pixel properties
delegate Delegate to call for each pixel
SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP::FILTER_GENERAL_CHGPROP ( STAGE pPreviousStage,
bool  TakeOwnership,
const PIXEL PixelProperties,
DELEGATE_RC  delegate 
)

Construct with delegate which accepts row/column parameters.

The delegate will be passed SAMPLEITERATOR arrays for the target and source, along with a "valid" value indicating whether the source pixel is valid or not. Delegate must return true to indicate that result is valid or false if not. If result is valid delegate must use target iterator to store resulting sample values. In addition, delegate will be passed the row and column for the image cell being processed. If these values are not needed then use the minimal delegate instead for better performance.

Parameters:
pPreviousStage Pointer to previous stage
TakeOwnership Filter takes ownership of previous stage and will delete when needed
PixelProperties Result pixel properties
delegate Delegate to call for each pixel
virtual SPATMOD::IMAGE::FILTER_GENERAL_CHGPROP::~FILTER_GENERAL_CHGPROP (  )  [virtual]

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

Generated on Sun Oct 7 21:39:48 2012 for TNTsdk 2012 by  doxygen 1.6.1