Table of Contents

Class SolidColor

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that generates a sequence with a single image where all pixels are set to the same color value.

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

Properties

Channels

Gets or sets the number of channels in the output image.

public int Channels { get; set; }

Property Value

int

Color

Gets or sets the color value to which all pixels in the output image will be set to.

[Range(0, 255)]
[Precision(0, 1)]
[TypeConverter(typeof(BgraScalarConverter))]
public Scalar Color { get; set; }

Property Value

Scalar

Depth

Gets or sets the target bit depth of individual image pixels.

public IplDepth Depth { get; set; }

Property Value

IplDepth

Size

Gets or sets the size of the output image.

public Size Size { get; set; }

Property Value

Size

Methods

Generate()

Generates an observable sequence with a single image where all pixels are set to the same color value.

public override IObservable<IplImage> Generate()

Returns

IObservable<IplImage>

A sequence with a single IplImage object with the specified pixel format and where all pixels are set to the same color value.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of images where all pixels are set to the same color value, and where each new image is emitted only when an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new images.

Returns

IObservable<IplImage>

A sequence of IplImage objects with the specified pixel format and where all pixels are set to the same color value.

Type Parameters

TSource

The type of the elements in the source sequence.