Filter to perform generic in-place pixel-by-pixel computation using delegate. More...
#include <spatmod/imagefiltergeneral.h>

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 () |
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.
| 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.
| 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.
| 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.
| 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] |
1.6.1