Table of Contents

Class LoadImage

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that loads an image from the specified file.

public class LoadImage : Source<IplImage>
Inheritance
LoadImage
Inherited Members

Properties

FileName

Gets or sets the name of the image file.

[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif;*.tiff;*.exr|PNG Files|*.png|BMP Files|*.bmp|JPEG Files|*.jpg;*.jpeg|TIFF Files|*.tif;*.tiff|EXR Files|*.exr|All Files|*.*")]
public string FileName { get; set; }

Property Value

string

Mode

Gets or sets a value specifying optional conversions applied to the loaded image.

public LoadImageFlags Mode { get; set; }

Property Value

LoadImageFlags

Methods

Generate()

Generates an observable sequence that contains the image loaded from the specified file.

public override IObservable<IplImage> Generate()

Returns

IObservable<IplImage>

A sequence containing a single IplImage object representing the image loaded from the specified file.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of images loaded from the specified file, and where each image is loaded only when an observable sequence raises a notification.

public IObservable<IplImage> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for loading new images.

Returns

IObservable<IplImage>

The sequence of IplImage objects loaded from the specified file. The most current file name is used to load the image after each notification in the source sequence.

Type Parameters

TSource

The type of the elements in the source sequence.