Morphological Filter Base Class. More...
#include <spatmod/imagefiltermorphology.h>

Public Types | |
| enum | ROTATION { ROTATION_0 = 0, ROTATION_90 = 90, ROTATION_180 = 180, ROTATION_270 = 270 } |
| enum | SHAPE { SHAPE_ShortLine = 0, SHAPE_Diagonal, SHAPE_LongLine, SHAPE_Plus, SHAPE_Square, SHAPE_Tee } |
Public Member Functions | |
| virtual | ~FILTER_MORPHOLOGY () |
| void | SetElementMatrix (INT32 NumRows, INT32 NumCols, SHAPE shape, double OnValue, double OffValue=0.0, ROTATION rotation=ROTATION_0) |
| void | SetElementMatrix (const MIMATRIX &matrix) |
Static Public Member Functions | |
| static void | BuildElementMatrix (MIMATRIX &matrix, INT32 NumRows, INT32 NumCols, SHAPE shape, double OnValue, double OffValue=0.0, ROTATION rotation=ROTATION_0) |
Protected Member Functions | |
| FILTER_MORPHOLOGY (STAGE *pInputStage, bool TakeOwnership) | |
| const MIMATRIX & | GetMatrix () const |
Morphological Filter Base Class.
Base class for other morphological filters
| virtual SPATMOD::IMAGE::FILTER_MORPHOLOGY::~FILTER_MORPHOLOGY | ( | ) | [virtual] |
Destructor.
| SPATMOD::IMAGE::FILTER_MORPHOLOGY::FILTER_MORPHOLOGY | ( | STAGE * | pInputStage, | |
| bool | TakeOwnership | |||
| ) | [protected] |
Constructor.
| pInputStage | Pointer to input stage | |
| TakeOwnership | Filter takes ownership of previous stages and will delete when needed |
| static void SPATMOD::IMAGE::FILTER_MORPHOLOGY::BuildElementMatrix | ( | MIMATRIX & | matrix, | |
| INT32 | NumRows, | |||
| INT32 | NumCols, | |||
| SHAPE | shape, | |||
| double | OnValue, | |||
| double | OffValue = 0.0, |
|||
| ROTATION | rotation = ROTATION_0 | |||
| ) | [static] |
| const MIMATRIX& SPATMOD::IMAGE::FILTER_MORPHOLOGY::GetMatrix | ( | ) | const [inline, protected] |
| void SPATMOD::IMAGE::FILTER_MORPHOLOGY::SetElementMatrix | ( | INT32 | NumRows, | |
| INT32 | NumCols, | |||
| SHAPE | shape, | |||
| double | OnValue, | |||
| double | OffValue = 0.0, |
|||
| ROTATION | rotation = ROTATION_0 | |||
| ) | [inline] |
Set the "structure element" matrix If the source is binary, the matrix should be all zeros and ones.
If the source is non-binary, cells in the matrix which are IEEE_NaN are ignored.
| void SPATMOD::IMAGE::FILTER_MORPHOLOGY::SetElementMatrix | ( | const MIMATRIX & | matrix | ) | [inline] |
Set the "structure element" matrix If the source is binary, the matrix should be all zeros and ones.
If the source is non-binary, cells in the matrix which are IEEE_NaN are ignored.
1.6.1