Table of Contents

Class MatchTemplate

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that compares a template against overlapping regions of each array in the sequence.

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

Properties

MatchingMethod

Gets or sets a value specifying the method used to compare the template with overlapping array regions.

public TemplateMatchingMethod MatchingMethod { get; set; }

Property Value

TemplateMatchingMethod

Methods

Process<TArray, TTemplate>(IObservable<Tuple<TArray, TTemplate>>)

Compares a template against overlapping regions of each array in an observable sequence.

public IObservable<TArray> Process<TArray, TTemplate>(IObservable<Tuple<TArray, TTemplate>> source) where TArray : Arr where TTemplate : Arr

Parameters

source IObservable<Tuple<TArray, TTemplate>>

A sequence of pairs of multi-channel arrays representing respectively the values and the template used to compute the map of comparison results.

Returns

IObservable<TArray>

A single-channel array of 32-bit floating-point values representing a map of the comparison results for each overlapping region.

Type Parameters

TArray

The type of the array-like objects to compare with the template.

TTemplate

The type of the array-like objects representing the template to compare against arrays in the sequence.