Table of Contents

Class EncodeImage

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that encodes each image in the sequence into a byte buffer in memory using the specified format.

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

Properties

CompressionParameters

Gets the collection of optional image compression parameters.

[TypeConverter(typeof(EncodeImage.CompressionParameterCollectionConverter))]
public CompressionParameterCollection CompressionParameters { get; }

Property Value

CompressionParameterCollection

Extension

Gets or sets the file extension that defines the encoding format.

[TypeConverter(typeof(EncodeImage.ExtensionConverter))]
public string Extension { get; set; }

Property Value

string

Methods

Process<TArray>(IObservable<TArray>)

Encodes each image in an observable sequence into a byte buffer in memory using the specified format.

public IObservable<Mat> Process<TArray>(IObservable<TArray> source) where TArray : Arr

Parameters

source IObservable<TArray>

The sequence of array-like objects to be encoded.

Returns

IObservable<Mat>

The sequence of encoded memory buffers.

Type Parameters

TArray

The type of the array-like objects in the source sequence.