Table of Contents

Method Process

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Process(IObservable<Point[]>)

Computes the centroid of each array of points in an observable sequence.

public override IObservable<Point2f> Process(IObservable<Point[]> source)

Parameters

source IObservable<Point[]>

The sequence of Point arrays for which to compute the centroid.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each of the array of points in the sequence.

Process(IObservable<IEnumerable<Point>>)

Computes the centroid of each collection of points in an observable sequence.

public IObservable<Point2f> Process(IObservable<IEnumerable<Point>> source)

Parameters

source IObservable<IEnumerable<Point>>

The sequence of Point collections for which to compute the centroid.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each collection of points in the sequence.

Process(IObservable<Point2f[]>)

Computes the centroid of each array of points in an observable sequence.

public IObservable<Point2f> Process(IObservable<Point2f[]> source)

Parameters

source IObservable<Point2f[]>

The sequence of Point2f arrays for which to compute the centroid.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each of the array of points in the sequence.

Process(IObservable<IEnumerable<Point2f>>)

Computes the centroid of each collection of points in an observable sequence.

public IObservable<Point2f> Process(IObservable<IEnumerable<Point2f>> source)

Parameters

source IObservable<IEnumerable<Point2f>>

The sequence of Point2f collections for which to compute the centroid.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each collection of points in the sequence.

Process(IObservable<IplImage>)

Computes the centroid of each image in an observable sequence.

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

Parameters

source IObservable<IplImage>

The sequence of images for which to compute the centroid, where each pixel is weighed according to its intensity value.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each image in the sequence.

Process(IObservable<Contour>)

Computes the centroid of each polygonal contour in an observable sequence.

public IObservable<Point2f> Process(IObservable<Contour> source)

Parameters

source IObservable<Contour>

The sequence of OpenCV.Net.Contour objects for which to compute the centroid.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each polygonal contour in the sequence.

Process(IObservable<ConnectedComponent>)

Extracts the centroid of each connected component in an observable sequence.

public IObservable<Point2f> Process(IObservable<ConnectedComponent> source)

Parameters

source IObservable<ConnectedComponent>

The sequence of ConnectedComponent objects for which to extract the centroid.

Returns

IObservable<Point2f>

A Point2f value representing the centroid of each connected component in the sequence.