Expand description
Colormap LUT data and imagesc rendering (ASCII and SVG/PNG).
Enums§
- Colormap
Spec - A colormap specification: either a built-in named colormap or a custom N×3 look-up table supplied by the user.
Constants§
- VALID_
COLORMAPS - All supported colormap names.
Functions§
- apply_
colormap - Maps a normalised value
t ∈ [0, 1]to an(R, G, B)triple. - apply_
colormap_ spec - Maps a normalised value
t ∈ [0, 1]to an(R, G, B)triple usingspec. - compute_
luminance - Computes per-pixel luminance
L = 0.299·R + 0.587·G + 0.114·B. - validate_
colormap - Validates a colormap name.
- validate_
colormap_ spec - Validates a
ColormapSpec, returning an error string on failure.