rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMorphologyFilter Class Reference

Morphology filter. More...

#include <ilviews/bitmaps/filters/morphology.h>

Inheritance diagram for IlvMorphologyFilter:
IlvBitmapFilter

List of all members.

Public Types

enum  Operator { Erode, Dilate }

Public Member Functions

 IlvMorphologyFilter (IlUInt radiusX=0, IlUInt radiusY=0, Operator op=Erode)
 Constructor.
 ~IlvMorphologyFilter ()
 Destructor.
IlvBitmapDataapply (IlUInt count=0, const IlvBitmapData **inputs=0)
 Applies the morphology to the given image.
Operator getOperator () const
 Returns the mode of the filter.
IlUInt getRadiusX () const
 Returns the width of the kernel.
IlUInt getRadiusY () const
 Returns the height of the kernel.
void setOperator (Operator op)
 Sets the operator for this instance.
void setRadiusX (IlUInt radius)
 Sets the width of the kernel.
void setRadiusY (IlUInt radius)
 Sets the height of the kernel.

Detailed Description

Morphology filter.

Library: ilvbmpflt

This bitmap filter lets you perform fattening or thinning on an image. This filter uses a kernel to compute component-wise minimum or maximum values to set the new component value.

See also:
IlvRGBBitmapData, IlvBitmapFilter

Member Enumeration Documentation

This enumeration defines the possible values for the operation mode.

Enumerator:
Erode 

Erode The filter erodes (thins) the source image. This is the default.

Dilate 

Dilate The filter dilates (fattens) the source image.


Constructor & Destructor Documentation

IlvMorphologyFilter::IlvMorphologyFilter ( IlUInt  radiusX = 0,
IlUInt  radiusY = 0,
Operator  op = Erode 
)

Constructor.

Initializes a new instance of the class IlvMorphologyFilter.

Parameters:
radiusX The morphology radius in the x dimension.
radiusY The morphology radius in the y dimension.
op The morphology operator.
IlvMorphologyFilter::~IlvMorphologyFilter (  ) 

Destructor.

The destructor releases all the memory used by the instance.


Member Function Documentation

Operator IlvMorphologyFilter::getOperator (  )  const

Returns the mode of the filter.

Returns:
The mode of the filter.
IlUInt IlvMorphologyFilter::getRadiusX (  )  const

Returns the width of the kernel.

Returns:
The width of the kernel.
IlUInt IlvMorphologyFilter::getRadiusY (  )  const

Returns the height of the kernel.

Returns:
The height of the kernel.
void IlvMorphologyFilter::setOperator ( Operator  op  ) 

Sets the operator for this instance.

Parameters:
op The new morphology operator.
void IlvMorphologyFilter::setRadiusX ( IlUInt  radius  ) 

Sets the width of the kernel.

Parameters:
radius The new width of the kernel.
void IlvMorphologyFilter::setRadiusY ( IlUInt  radius  ) 

Sets the height of the kernel.

Parameters:
radius The new width of the kernel.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.