Table of Contents

Class MorphologicalOperator

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that applies a morphological transformation kernel to each image in the sequence.

public class MorphologicalOperator : Transform<IplImage, IplImage>
Inheritance
MorphologicalOperator
Inherited Members

Constructors

MorphologicalOperator()

Initializes a new instance of the MorphologicalOperator class.

public MorphologicalOperator()

Properties

Anchor

Gets or sets the anchor of the structuring element.

public Point Anchor { get; set; }

Property Value

Point

Iterations

Gets or sets the number of times to apply the morphological operator.

[Range(0, 2147483647)]
public int Iterations { get; set; }

Property Value

int

Operation

Gets or sets a value specifying the type of morphological operation to be applied.

public MorphologicalOperation Operation { get; set; }

Property Value

MorphologicalOperation

Shape

Gets or sets the shape of the structuring element.

[TypeConverter(typeof(MorphologicalOperator.ShapeConverter))]
public StructuringElementShape Shape { get; set; }

Property Value

StructuringElementShape

Size

Gets or sets the size of the structuring element.

public Size Size { get; set; }

Property Value

Size

Methods

Process(IObservable<IplImage>)

Applies a morphological transformation kernel to each image in an observable sequence.

public override IObservable<IplImage> Process(IObservable<IplImage> source)

Parameters

source IObservable<IplImage>

The sequence of images for which to apply the morphological operator.

Returns

IObservable<IplImage>

The sequence of transformed images.