SPATMOD::IMAGE::FILTER_MORPHOLOGY Class Reference

Morphological Filter Base Class. More...

#include <spatmod/imagefiltermorphology.h>

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

List of all members.

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 MIMATRIXGetMatrix () const

Detailed Description

Morphological Filter Base Class.

Base class for other morphological filters


Member Enumeration Documentation

Rotation angle of predefined structure element shape.

Enumerator:
ROTATION_0 
ROTATION_90 
ROTATION_180 
ROTATION_270 

Pre-defined structure element shapes.

Enumerator:
SHAPE_ShortLine 
SHAPE_Diagonal 
SHAPE_LongLine 
SHAPE_Plus 
SHAPE_Square 
SHAPE_Tee 

Constructor & Destructor Documentation

virtual SPATMOD::IMAGE::FILTER_MORPHOLOGY::~FILTER_MORPHOLOGY (  )  [virtual]

Destructor.

SPATMOD::IMAGE::FILTER_MORPHOLOGY::FILTER_MORPHOLOGY ( STAGE pInputStage,
bool  TakeOwnership 
) [protected]

Constructor.

Parameters:
pInputStage Pointer to input stage
TakeOwnership Filter takes ownership of previous stages and will delete when needed

Member Function Documentation

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.


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

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