SPATMOD::IMAGE::FILTER_GENERAL_INPLACE Class Reference

Filter to perform generic in-place pixel-by-pixel computation using delegate. More...

#include <spatmod/imagefiltergeneral.h>

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

List of all members.

Public Types

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

Public Member Functions

 FILTER_GENERAL_INPLACE (STAGE *pPreviousStage, bool TakeOwnership, DELEGATE_RC delegate)
 FILTER_GENERAL_INPLACE (STAGE *pPreviousStage, bool TakeOwnership, DELEGATE delegate)
virtual ~FILTER_GENERAL_INPLACE ()

Detailed Description

Filter to perform generic in-place pixel-by-pixel computation using delegate.

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 *it, bool valid) SPATMOD::IMAGE::FILTER_GENERAL_INPLACE::DELEGATE)

Delegate for processing each pixel.

typedef FastDelegate<bool(INT32 row, INT32 col, const SAMPLEITERATOR *it, bool valid) SPATMOD::IMAGE::FILTER_GENERAL_INPLACE::DELEGATE_RC)

Delegate for processing pixel with row/column parameters.


Constructor & Destructor Documentation

SPATMOD::IMAGE::FILTER_GENERAL_INPLACE::FILTER_GENERAL_INPLACE ( STAGE pPreviousStage,
bool  TakeOwnership,
DELEGATE  delegate 
)

Construct with minimal delegate.

The delegate will be passed a SAMPLEITERATOR array, 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
delegate Delegate to call for each pixel
SPATMOD::IMAGE::FILTER_GENERAL_INPLACE::FILTER_GENERAL_INPLACE ( STAGE pPreviousStage,
bool  TakeOwnership,
DELEGATE_RC  delegate 
)

Construct with delegate which accepts row/column parameters.

The delegate will be passed a SAMPLEITERATOR array, 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
delegate Delegate to call for each pixel
virtual SPATMOD::IMAGE::FILTER_GENERAL_INPLACE::~FILTER_GENERAL_INPLACE (  )  [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