Table of Contents

Class TakeBinaryRegions

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that takes the specified number of binary regions from each collection in the sequence.

public class TakeBinaryRegions : Transform<ConnectedComponentCollection, ConnectedComponentCollection>
Inheritance
TakeBinaryRegions
Inherited Members

Properties

Count

Gets or sets the number of binary regions to take.

public int Count { get; set; }

Property Value

int

Methods

Process(IObservable<ConnectedComponentCollection>)

Takes the specified number of binary regions from each collection in an observable sequence.

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

Parameters

source IObservable<ConnectedComponentCollection>

A sequence of ConnectedComponentCollection objects from which to take the specified number of binary regions.

Returns

IObservable<ConnectedComponentCollection>

A sequence of ConnectedComponentCollection objects, where each collection always contains the specified number of binary regions. If the corresponding collection in the original sequence does not have enough regions, the missing elements are set to the empty region.

Process(IObservable<IEnumerable<ConnectedComponent>>)

Takes the specified number of binary regions from each collection in an observable sequence.

public IObservable<ConnectedComponentCollection> Process(IObservable<IEnumerable<ConnectedComponent>> source)

Parameters

source IObservable<IEnumerable<ConnectedComponent>>

A sequence of ConnectedComponent collection objects from which to take the specified number of binary regions.

Returns

IObservable<ConnectedComponentCollection>

A sequence of ConnectedComponentCollection objects, where each collection always contains the specified number of binary regions. If the corresponding collection in the original sequence does not have enough regions, the missing elements are set to the empty region.