Table of Contents

Class LoadIntrinsics

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that loads a set of camera intrinsics from a YML file.

public class LoadIntrinsics : Source<Intrinsics>
Inheritance
LoadIntrinsics
Inherited Members

Properties

FileName

Gets or sets the name of the camera intrinsics file.

[FileNameFilter("YML Files (*.yml)|*.yml|All Files|*.*")]
public string FileName { get; set; }

Property Value

string

Methods

Generate()

Generates an observable sequence that contains the camera intrinsics loaded from the specified YML file.

public override IObservable<Intrinsics> Generate()

Returns

IObservable<Intrinsics>

A sequence containing a single Intrinsics object representing the camera intrinsics loaded from the specified YML file.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of camera intrinsics loaded from the specified YML file, and where each Intrinsics object is loaded only when an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for loading new camera intrinsics.

Returns

IObservable<Intrinsics>

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

Type Parameters

TSource

The type of the elements in the source sequence.