Creates a new interpretation.
The mode.
The options.
Gets the color space required for a correct decoding of textures in this interpretation.
If color space cannot be determined, returns undefined
.
The max value (only for MinMax
mode).
The min value (only for MinMax
mode).
Gets the interpretation mode.
Gets or set the sign negation of elevation values. If true
, reverses the sign of elevation
values, such that positive values are going downward, rather than updwards.
In other words, interpret values as depths rather than heights.
Static
RawPreset for raw. The pixel is used as is, without transformation. Compatible with both grayscale and color images. This is the default.
Static
CompressPreset for compression.
Compresses the input range into the 8-bit range. This is the inverse of Interpretation.ScaleToMinMax.
Note: this is typically used to visualize high dynamic range images, such as 32-bit data, into the 8-bit range suitable for display.
The minimum value of the dataset.
The maximum value of the dataset.
The interpretation.
Static
ScalePreset for scaling interpretation.
Applies a scaling processing to pixels with the provided min/max values with the following
formula : output = min + input * (max - min)
.
Input can be either color or grayscale, and output will be either color or grayscale, depending on input.
Note: this is typically used to encode elevation data into a 8-bit grayscale image.
The minimum value of the dataset, that maps to 0.
The maximum value of the dataset, that maps to 255.
The scaling values.
Describes how an image pixel should be interpreted. Any interpretation other than
Raw
will apply a specific processing to every pixel of an image.Note: this is unrelated to the file format / encoding (like JPG and PNG). This interpretation occurs after the image was decoded into a pixel buffer.