ContrastEnhancement to byte datatype should reserve a value for nodata (when present) and adjust scale/offset

Description

ContrastEnhancement to byte should reserve a value for nodata (when present).
By default, contrastEnhancement to byte rescales input data in the range [minValue, maxValue] to [0, 255].
When input data contains nodata, a value should be reserved (usually 0) for nodata so that it can be used for transparency, afterwards. This requires adjusting scales and offset when rescaling the values.

Environment

None

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Components

Fix versions

Priority

Medium
Configure