Table of Contents

Class Buffer

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that collects each element of the sequence into zero or more array buffers based on element count information.

[Combinator]
[WorkflowElementCategory(ElementCategory.Transform)]
public class Buffer
Inheritance
Buffer
Inherited Members

Properties

Count

Gets or sets the number of elements in each array buffer.

public int Count { get; set; }

Property Value

int

Skip

Gets or sets the optional number of elements to skip between the creation of consecutive buffers.

public int? Skip { get; set; }

Property Value

int?

Remarks

If no value is specified, it is considered to be be equal to Count in order to generate consecutive non-overlapping buffers. If the value is less than Count this operator will generate overlapping sliding windows.

Methods

Process(IObservable<Mat>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Mat> source)

Parameters

source IObservable<Mat>

A sequence of array buffers containing the samples to buffer

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with the same number of rows as each element in each list, and column length equal to Count.

Process(IObservable<byte>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<byte> source)

Parameters

source IObservable<byte>

A sequence of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat vectors of length equal to Count containing the buffered data.

Process(IObservable<IList<byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<IList<byte>> source)

Parameters

source IObservable<IList<byte>>

A sequence of lists of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with as many rows as there are elements in each list, and column length equal to Count.

Process(IObservable<IList<double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<IList<double>> source)

Parameters

source IObservable<IList<double>>

A sequence of lists of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with as many rows as there are elements in each list, and column length equal to Count.

Process(IObservable<IList<short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<IList<short>> source)

Parameters

source IObservable<IList<short>>

A sequence of lists of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with as many rows as there are elements in each list, and column length equal to Count.

Process(IObservable<IList<int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<IList<int>> source)

Parameters

source IObservable<IList<int>>

A sequence of lists of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with as many rows as there are elements in each list, and column length equal to Count.

Process(IObservable<IList<float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<IList<float>> source)

Parameters

source IObservable<IList<float>>

A sequence of lists of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with as many rows as there are elements in each list, and column length equal to Count.

Process(IObservable<IList<ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<IList<ushort>> source)

Parameters

source IObservable<IList<ushort>>

A sequence of lists of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with as many rows as there are elements in each list, and column length equal to Count.

Process(IObservable<double>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<double> source)

Parameters

source IObservable<double>

A sequence of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat vectors of length equal to Count containing the buffered data.

Process(IObservable<short>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<short> source)

Parameters

source IObservable<short>

A sequence of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat vectors of length equal to Count containing the buffered data.

Process(IObservable<int>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<int> source)

Parameters

source IObservable<int>

A sequence of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat vectors of length equal to Count containing the buffered data.

Process(IObservable<float>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<float> source)

Parameters

source IObservable<float>

A sequence of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat vectors of length equal to Count containing the buffered data.

Process(IObservable<Tuple<byte, byte, byte, byte, byte, byte, byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<byte, byte, byte, byte, byte, byte, byte>> source)

Parameters

source IObservable<Tuple<byte, byte, byte, byte, byte, byte, byte>>

A sequence of septuples of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with seven rows and column length equal to Count.

Process(IObservable<Tuple<byte, byte, byte, byte, byte, byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<byte, byte, byte, byte, byte, byte>> source)

Parameters

source IObservable<Tuple<byte, byte, byte, byte, byte, byte>>

A sequence of sextuples of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with six rows and column length equal to Count.

Process(IObservable<Tuple<byte, byte, byte, byte, byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<byte, byte, byte, byte, byte>> source)

Parameters

source IObservable<Tuple<byte, byte, byte, byte, byte>>

A sequence of quintuples of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with five rows and column length equal to Count.

Process(IObservable<Tuple<byte, byte, byte, byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<byte, byte, byte, byte>> source)

Parameters

source IObservable<Tuple<byte, byte, byte, byte>>

A sequence of quadruples of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with four rows and column length equal to Count.

Process(IObservable<Tuple<byte, byte, byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<byte, byte, byte>> source)

Parameters

source IObservable<Tuple<byte, byte, byte>>

A sequence of triples of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with three rows and column length equal to Count.

Process(IObservable<Tuple<byte, byte>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<byte, byte>> source)

Parameters

source IObservable<Tuple<byte, byte>>

A sequence of pairs of 8-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with two rows and column length equal to Count.

Process(IObservable<Tuple<double, double, double, double, double, double, double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<double, double, double, double, double, double, double>> source)

Parameters

source IObservable<Tuple<double, double, double, double, double, double, double>>

A sequence of septuples of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with seven rows and column length equal to Count.

Process(IObservable<Tuple<double, double, double, double, double, double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<double, double, double, double, double, double>> source)

Parameters

source IObservable<Tuple<double, double, double, double, double, double>>

A sequence of sextuples of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with six rows and column length equal to Count.

Process(IObservable<Tuple<double, double, double, double, double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<double, double, double, double, double>> source)

Parameters

source IObservable<Tuple<double, double, double, double, double>>

A sequence of quintuples of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with five rows and column length equal to Count.

Process(IObservable<Tuple<double, double, double, double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<double, double, double, double>> source)

Parameters

source IObservable<Tuple<double, double, double, double>>

A sequence of quadruples of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with four rows and column length equal to Count.

Process(IObservable<Tuple<double, double, double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<double, double, double>> source)

Parameters

source IObservable<Tuple<double, double, double>>

A sequence of triples of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with three rows and column length equal to Count.

Process(IObservable<Tuple<double, double>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<double, double>> source)

Parameters

source IObservable<Tuple<double, double>>

A sequence of pairs of 64-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with two rows and column length equal to Count.

Process(IObservable<Tuple<short, short, short, short, short, short, short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<short, short, short, short, short, short, short>> source)

Parameters

source IObservable<Tuple<short, short, short, short, short, short, short>>

A sequence of septuples of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with seven rows and column length equal to Count.

Process(IObservable<Tuple<short, short, short, short, short, short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<short, short, short, short, short, short>> source)

Parameters

source IObservable<Tuple<short, short, short, short, short, short>>

A sequence of sextuples of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with six rows and column length equal to Count.

Process(IObservable<Tuple<short, short, short, short, short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<short, short, short, short, short>> source)

Parameters

source IObservable<Tuple<short, short, short, short, short>>

A sequence of quintuples of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with five rows and column length equal to Count.

Process(IObservable<Tuple<short, short, short, short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<short, short, short, short>> source)

Parameters

source IObservable<Tuple<short, short, short, short>>

A sequence of quadruples of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with four rows and column length equal to Count.

Process(IObservable<Tuple<short, short, short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<short, short, short>> source)

Parameters

source IObservable<Tuple<short, short, short>>

A sequence of triples of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with three rows and column length equal to Count.

Process(IObservable<Tuple<short, short>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<short, short>> source)

Parameters

source IObservable<Tuple<short, short>>

A sequence of pairs of 16-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with two rows and column length equal to Count.

Process(IObservable<Tuple<int, int, int, int, int, int, int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<int, int, int, int, int, int, int>> source)

Parameters

source IObservable<Tuple<int, int, int, int, int, int, int>>

A sequence of septuples of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with seven rows and column length equal to Count.

Process(IObservable<Tuple<int, int, int, int, int, int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<int, int, int, int, int, int>> source)

Parameters

source IObservable<Tuple<int, int, int, int, int, int>>

A sequence of sextuples of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with six rows and column length equal to Count.

Process(IObservable<Tuple<int, int, int, int, int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<int, int, int, int, int>> source)

Parameters

source IObservable<Tuple<int, int, int, int, int>>

A sequence of quintuples of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with five rows and column length equal to Count.

Process(IObservable<Tuple<int, int, int, int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<int, int, int, int>> source)

Parameters

source IObservable<Tuple<int, int, int, int>>

A sequence of quadruples of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with four rows and column length equal to Count.

Process(IObservable<Tuple<int, int, int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<int, int, int>> source)

Parameters

source IObservable<Tuple<int, int, int>>

A sequence of triples of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with three rows and column length equal to Count.

Process(IObservable<Tuple<int, int>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<int, int>> source)

Parameters

source IObservable<Tuple<int, int>>

A sequence of pairs of 32-bit signed integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with two rows and column length equal to Count.

Process(IObservable<Tuple<float, float, float, float, float, float, float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<float, float, float, float, float, float, float>> source)

Parameters

source IObservable<Tuple<float, float, float, float, float, float, float>>

A sequence of septuples of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with seven rows and column length equal to Count.

Process(IObservable<Tuple<float, float, float, float, float, float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<float, float, float, float, float, float>> source)

Parameters

source IObservable<Tuple<float, float, float, float, float, float>>

A sequence of sextuples of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with six rows and column length equal to Count.

Process(IObservable<Tuple<float, float, float, float, float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<float, float, float, float, float>> source)

Parameters

source IObservable<Tuple<float, float, float, float, float>>

A sequence of quintuples of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with five rows and column length equal to Count.

Process(IObservable<Tuple<float, float, float, float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<float, float, float, float>> source)

Parameters

source IObservable<Tuple<float, float, float, float>>

A sequence of quadruples of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with four rows and column length equal to Count.

Process(IObservable<Tuple<float, float, float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<float, float, float>> source)

Parameters

source IObservable<Tuple<float, float, float>>

A sequence of triples of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with three rows and column length equal to Count.

Process(IObservable<Tuple<float, float>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<float, float>> source)

Parameters

source IObservable<Tuple<float, float>>

A sequence of pairs of 32-bit floating-point numbers to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with two rows and column length equal to Count.

Process(IObservable<Tuple<ushort, ushort, ushort, ushort, ushort, ushort, ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<ushort, ushort, ushort, ushort, ushort, ushort, ushort>> source)

Parameters

source IObservable<Tuple<ushort, ushort, ushort, ushort, ushort, ushort, ushort>>

A sequence of septuples of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with seven rows and column length equal to Count.

Process(IObservable<Tuple<ushort, ushort, ushort, ushort, ushort, ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<ushort, ushort, ushort, ushort, ushort, ushort>> source)

Parameters

source IObservable<Tuple<ushort, ushort, ushort, ushort, ushort, ushort>>

A sequence of sextuples of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with six rows and column length equal to Count.

Process(IObservable<Tuple<ushort, ushort, ushort, ushort, ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<ushort, ushort, ushort, ushort, ushort>> source)

Parameters

source IObservable<Tuple<ushort, ushort, ushort, ushort, ushort>>

A sequence of quintuples of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with five rows and column length equal to Count.

Process(IObservable<Tuple<ushort, ushort, ushort, ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<ushort, ushort, ushort, ushort>> source)

Parameters

source IObservable<Tuple<ushort, ushort, ushort, ushort>>

A sequence of quadruples of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with four rows and column length equal to Count.

Process(IObservable<Tuple<ushort, ushort, ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<ushort, ushort, ushort>> source)

Parameters

source IObservable<Tuple<ushort, ushort, ushort>>

A sequence of triples of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with three rows and column length equal to Count.

Process(IObservable<Tuple<ushort, ushort>>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<Tuple<ushort, ushort>> source)

Parameters

source IObservable<Tuple<ushort, ushort>>

A sequence of pairs of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat objects containing the buffered data, with two rows and column length equal to Count.

Process(IObservable<ushort>)

Collects each element of the sequence into zero or more array buffers based on element count information.

public IObservable<Mat> Process(IObservable<ushort> source)

Parameters

source IObservable<ushort>

A sequence of 16-bit unsigned integer values to buffer.

Returns

IObservable<Mat>

A sequence of Mat vectors of length equal to Count containing the buffered data.