Table of Contents

Class BinaryRegionAnalysis

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that computes image moments from polygonal contours or individual frames in the sequence to extract binary region properties.

public class BinaryRegionAnalysis : Transform<Contours, ConnectedComponentCollection>
Inheritance
BinaryRegionAnalysis
Inherited Members

Remarks

If the area of any of the extracted connected components is zero, the centroid and orientation angle for that connected component will be set to NaN.

Methods

Process(IObservable<Contours>)

Computes image moments from polygonal contours in an observable sequence to extract binary region properties.

public override IObservable<ConnectedComponentCollection> Process(IObservable<Contours> source)

Parameters

source IObservable<Contours>

A sequence of hierarchical polygonal contours for which to compute binary region properties.

Returns

IObservable<ConnectedComponentCollection>

A sequence of ConnectedComponentCollection objects containing the binary region measurements for all the polygons in the hierarchy of polygonal contours.

Process(IObservable<IplImage>)

Computes image moments from individual frames in an observable sequence to extract binary region properties.

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

Parameters

source IObservable<IplImage>

A sequence of rasterized shapes where every non-zero pixel is treated as having a weight of one.

Returns

IObservable<ConnectedComponent>

A sequence of ConnectedComponent objects containing the binary region measurements for all the pixels in the image considered as a single object.

Process(IObservable<Seq>)

Computes image moments from individual polygons in an observable sequence to extract binary region properties.

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

Parameters

source IObservable<Seq>

A sequence of polygons for which to compute binary region properties.

Returns

IObservable<ConnectedComponent>

A sequence of ConnectedComponent objects containing the binary region measurements for all the polygons in the sequence.

Process(IObservable<Tuple<Contours, IplImage>>)

Computes image moments from polygonal contours in an observable sequence to extract binary region properties, where each binary region will be associated with a corresponding patch of pixels.

public IObservable<ConnectedComponentCollection> Process(IObservable<Tuple<Contours, IplImage>> source)

Parameters

source IObservable<Tuple<Contours, IplImage>>

A sequence of hierarchical polygonal contours for which to compute binary region properties, paired with the image from which they were extracted.

Returns

IObservable<ConnectedComponentCollection>

A sequence of ConnectedComponentCollection objects containing the binary region measurements for all the polygons in the hierarchy of polygonal contours. Each binary region will be associated with the subregion of the paired image corresponding to the bounding box of the binary region shape.