Table of Contents

Class BinaryRegionExtremes

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that computes the extremities, or endpoints, of each connected component in the sequence.

[TypeVisualizer("Bonsai.Vision.Design.BinaryRegionExtremesVisualizer, Bonsai.Vision.Design")]
public class BinaryRegionExtremes : Transform<ConnectedComponent, Tuple<Point2f, Point2f>>
Inheritance
BinaryRegionExtremes
Inherited Members

Properties

Method

Gets or sets a value specifying the method used to compute the extremities of each connected component.

public FindExtremesMethod Method { get; set; }

Property Value

FindExtremesMethod

Methods

Process(IObservable<ConnectedComponent>)

Computes the extremities, or endpoints, of each connected component in an observable sequence.

public override IObservable<Tuple<Point2f, Point2f>> Process(IObservable<ConnectedComponent> source)

Parameters

source IObservable<ConnectedComponent>

The sequence of connected components for which to compute the extremities.

Returns

IObservable<Tuple<Point2f, Point2f>>

A pair of vertices specifying the two extremities, or endpoints, of each connected component in the sequence. If the connected component has no vertices, the endpoint coordinates will be set to NaN.