Class ScalarBuffer
Represents an operator that generates a sequence with a single buffer where all elements are set to the same scalar value.
public class ScalarBuffer : Source<Mat>
- Inheritance
-
ScalarBuffer
- Inherited Members
Properties
Channels
Gets or sets the number of channels in the output buffer.
public int Channels { get; set; }
Property Value
Depth
Gets or sets the bit depth of each element in the output buffer.
public Depth Depth { get; set; }
Property Value
Size
Gets or sets the size of the output buffer.
public Size Size { get; set; }
Property Value
Value
Gets or sets the scalar value to which all elements in the output buffer will be set to.
public Scalar Value { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence with a single buffer where all elements are set to the same scalar value.
public override IObservable<Mat> Generate()
Returns
- IObservable<Mat>
A sequence with a single Mat object with the specified element type and where all the elements are set to the same scalar value.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence of buffers where all elements are set to the same scalar value, and where each new buffer is emitted only when an observable sequence emits a notification.
public IObservable<Mat> Generate<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used for emitting new buffers.
Returns
- IObservable<Mat>
A sequence of Mat objects with the specified element type and where all the elements are set to the same scalar value.
Type Parameters
TSource
The type of the elements in the
source
sequence.