General filter using delegate to perform pixel-by-pixel computation with result image properties specified. More...
#include <spatmod/imagefiltergeneral.h>

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