classPiiMorphologyOperation
#include <PiiMorphologyOperation.h>
Basic binary morphology operations.
Inherits PiiDefaultOperation
Description
Inputs
Outputs
Properties
|
bool
|
A flag that controls the behavior of border handling with erosion. |
|
Size of the structuring element. |
|
|
Type of the structuring element. |
|
|
The type of a moprhological operation to be applied to input images. |
Constructors and destructor
Public member functions
|
bool
|
( )
|
|
PiiMatrix< int >
|
( )
|
|
( )
|
|
|
( )
|
|
|
( )
|
|
|
void
|
(
|
|
template<class T>
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
Protected member functions
|
virtual void
|
( )
Executes one round of processing. |
Property details
-
bool handleBorders
[read, write]A flag that controls the behavior of border handling with erosion.
See PiiImage::erode() for details. The default value is
false. -
QSize maskSize
[read, write]Size of the structuring element.
Any size will do as far as the mask is smaller than the input image. The default is 3x3.
-
PiiImage::MaskType maskType
[read, write]Type of the structuring element.
The default is
RectangularMask. -
PiiImage::MorphologyOperation operation
[read, write]The type of a moprhological operation to be applied to input images.
The default value is
Erode.
Function details
-
PiiMorphologyOperation
() -
bool handleBorders
() -
PiiMatrix< int > mask
() -
QSize maskSize
() -
PiiImage::MaskType maskType
() -
PiiImage::MorphologyOperation operation
() -
void setHandleBorders
(- bool handleBorders
-
-
void setMaskSize
-
void setMaskType
-
void setOperation
-
virtual void process
()[protected, virtual]Executes one round of processing.
This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.
Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().
Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns
Running.Exceptions
- PiiExecutionException
-
whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.
Reimplemented from PiiDefaultOperation.
Add a note
Not a single note added yet. Be the first, add yours.