Class ConvertScale
Represents an operator that converts each array in the sequence to the specified bit depth, with optional linear transformation.
[Combinator]
[WorkflowElementCategory(ElementCategory.Transform)]
public class ConvertScale : ArrayTransform
- Inheritance
-
ConvertScale
- Inherited Members
Properties
Depth
Gets or sets the bit depth of each element in the output array.
[TypeConverter(typeof(DepthConverter))]
public Depth? Depth { get; set; }
Property Value
Remarks
If this property is not specified, the bit depth of the output array will be the same as the bit depth of the input array.
Scale
Gets or sets the optional scale factor to apply to the array elements.
public double Scale { get; set; }
Property Value
Shift
Gets or sets the optional value to be added to the scaled array elements.
public double Shift { get; set; }
Property Value
Methods
Process<TArray>(IObservable<TArray>)
Converts each array in the sequence to the specified bit depth, with optional linear transformation.
public override IObservable<TArray> Process<TArray>(IObservable<TArray> source) where TArray : Arr
Parameters
source
IObservable<TArray>The sequence of arrays to be converted.
Returns
- IObservable<TArray>
A sequence containing the converted and scaled arrays.
Type Parameters
TArray
The type of the array-like objects in the
source
sequence.