Table of Contents

Class ReadPixels

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that reads a block of pixels from the framebuffer.

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

Properties

RegionOfInterest

Gets or sets the pixel region of interest to read from the framebuffer, in upper left coordinates. If no region is specified, the entire framebuffer is read.

[TypeConverter(typeof(NumericRecordConverter))]
public Rect? RegionOfInterest { get; set; }

Property Value

Rect?

Methods

Generate()

Generates an observable sequence that reads a block of pixels from the framebuffer and returns the data as an image object.

public override IObservable<IplImage> Generate()

Returns

IObservable<IplImage>

An observable sequence with a single IplImage object storing the pixels read from the framebuffer at the next state update.

Generate<TSource>(IObservable<TSource>)

Reads a block of pixels from the framebuffer whenever an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used to read a block of pixels from the framebuffer.

Returns

IObservable<IplImage>

A sequence of IplImage objects storing the pixels read from the framebuffer whenever the source sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.