Table of Contents

Class Filter2D

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that convolves each image in the sequence with the specified kernel.

public class Filter2D : Transform<IplImage, IplImage>
Inheritance
Filter2D
Inherited Members

Properties

Anchor

Gets or sets the anchor of the kernel that indicates the relative position of filtered points.

public Point Anchor { get; set; }

Property Value

Point

Kernel

Gets or sets a 2D array specifying the image convolution kernel.

[TypeConverter(typeof(MultidimensionalArrayConverter))]
public float[,] Kernel { get; set; }

Property Value

float[,]

Methods

Process(IObservable<IplImage>)

Convolves each image in an observable sequence with the specified kernel.

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

Parameters

source IObservable<IplImage>

The sequence of images to convolve with the specified kernel.

Returns

IObservable<IplImage>

A sequence of IplImage objects representing the result of filtering each image with the specified convolution kernel.

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

Convolves each image in an observable sequence with its paired convolution kernel.

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

Parameters

source IObservable<Tuple<IplImage, IplImage>>

A sequence of pairs containing the image and the convolution kernel, respectively, where the kernel is specified as an IplImage object.

Returns

IObservable<IplImage>

A sequence of IplImage objects representing the result of filtering each image with the corresponding convolution kernel.

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

Convolves each image in an observable sequence with its paired convolution kernel.

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

Parameters

source IObservable<Tuple<IplImage, Mat>>

A sequence of pairs containing the image and the convolution kernel, respectively, where the kernel is specified as a Mat object.

Returns

IObservable<IplImage>

A sequence of IplImage objects representing the result of filtering each image with the corresponding convolution kernel.