Range
The Range element maps the input domain to the output range by scaling and offsetting values.
If a minInValue is present, then minOutValue must also be present and the result is clamped at the low end. Similarly, if maxInValue is present, then maxOutValue must also be present and the result is clamped at the high end. If none of minInValue, minOutValue, maxInValue, or maxOutValue are present, then the Range operator performs only bit-depth conversion.
The scaling of minInValue and maxInValue depends on the input bit-depth, and the scaling of minOutValue and maxOutValue depends the output bit-depth.
If both minimum and maximum values are specified, then the formula for Range is:
If only minimum values are specified, the formula is:
If only maximum values are specified, the formula is:
Where:
Contains
- Description. Optional, any number.
- minInValue. Optional, no more than one.
- minOutValue. Optional, no more than one.
- maxInValue. Optional, no more than one.
- maxOutValue. Optional, no more than one.
- DynamicParameter. Optional, no more than one. The param attribute must be set to "DEFAULT_LOOK".
Contained By
Attributes
id, name, bypass, inBitDepth, outBitDepth
See Common Operator Attributes.