Terminal Graphics
Single-file, header-only C++20 functionality for producing graphics on the terminal using the sixel protocol
|
Adapter class to rescale intensities of image to colourmap indices. More...
Public Member Functions | |
Rescale (const ImageType &image, double minval, double maxval, int cmap_size) | |
int | width () const |
int | height () const |
ctype | operator() (int x, int y) const |
Adapter class to rescale intensities of image to colourmap indices.
Rescale intensities of image from (min, max) to the range of indices in the specified colourmap, rounding to the nearest integer index, and clamping the values to the [ min max ] range.
|
inline |
|
inline |
|
inline |
|
inline |