PixelRange

Description

Name

struct Tinman.Image.PixelRange

Used by

Image.Info.pixelRange / Image.Range.range

The pixel range structure is used to map raw pixel values to normalized pixel values.

A pixel range is defined by two tiepoints, each containing a raw pixel value and a normalized pixel value. By carefully choosing the tiepoints, one can easily perform arbitrary linear transformations on pixel values.

Fields / Required

raw

Type

Vec2

The raw pixel value range.

Fields / Optional

pixel

Type

Vec2

Default

{Vec2: 0, 16777215}

The normalized pixel value range.