Into

Modules

Documentation

classPiiMorphologyOperation

#include <PiiMorphologyOperation.h>

Basic binary morphology operations.

Inherits PiiDefaultOperation

Description

Inputs

imagethe input image. Any gray-scale image. Zero is treated as "false". Any value other than zero is considered "true".

Outputs

imagethe image output. Output image is of the same data type as the input image, but contains only ones and zeros.

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
(
  • bool handleBorders
)
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

    ()
  • void setHandleBorders

    (
    • bool handleBorders
    )
  • template<class T>

    void setMask

    ( )
  • 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.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.