Table of Contents

Method Process

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

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

Extracts a number of samples from the input signal whenever a trigger rises.

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

Parameters

source IObservable<Tuple<Mat, Mat>>

A sequence of pairs of 2D matrices, where the first matrix contains the signal to extract samples from, and the second matrix contains the binary trigger signal, where zero values represent the trigger is in a LOW state, and positive values represent the trigger is in a HIGH state.

Returns

IObservable<Mat>

A sequence of Mat objects storing the extracted samples whenever the trigger line changes from LOW to HIGH.