Skip to content

@npm9912/v-map


@npm9912/v-map / map-provider/geotiff/utils/normalization-utils / normalizeValue

Function: normalizeValue() ​

normalizeValue(rawValue, arrayType): number

Defined in: src/map-provider/geotiff/utils/normalization-utils.ts:23

Normalize a raw value to 0-255 range based on array type

Parameters ​

rawValue ​

number

The raw value from the raster

arrayType ​

TypedArrayType

The TypedArray type name

Returns ​

number

Normalized value 0-255