libcvd
Static Public Member Functions | List of all members
CVD::Colourmap< Rgb< C > > Struct Template Reference

Handy class for generating a colourscale. More...

#include <colourmap.h>

Static Public Member Functions

static Rgb< C > hot (double d)
 Glow/Hot colourscale (red-yellow-white) More...
 
static Rgb< C > jet (double d)
 Jet colourscale (red-yellow-green-cyan-blue) More...
 
static Rgb< C > gkr (double d)
 Green-black-red colourscale. More...
 
static Rgb< C > grey (double d)
 Gray colourscale. More...
 

Detailed Description

template<class C>
struct CVD::Colourmap< Rgb< C > >

Handy class for generating a colourscale.

Expected range is \([0, 1)\), and clamping is performed. Currently only RGB scales are provided. TODO: RGBA scales.

Examples in examples/colourmaps.cc

Member Function Documentation

◆ gkr()

template<class C >
static Rgb<C> CVD::Colourmap< Rgb< C > >::gkr ( double  d)
inlinestatic

Green-black-red colourscale.

Parameters
dValue in \([0, 1)\) to map

◆ grey()

template<class C >
static Rgb<C> CVD::Colourmap< Rgb< C > >::grey ( double  d)
inlinestatic

Gray colourscale.

Parameters
dValue in \([0, 1)\) to map

◆ hot()

template<class C >
static Rgb<C> CVD::Colourmap< Rgb< C > >::hot ( double  d)
inlinestatic

Glow/Hot colourscale (red-yellow-white)

Parameters
dValue in \([0, 1)\) to map

◆ jet()

template<class C >
static Rgb<C> CVD::Colourmap< Rgb< C > >::jet ( double  d)
inlinestatic

Jet colourscale (red-yellow-green-cyan-blue)

Parameters
dValue in \([0, 1)\) to map

The documentation for this struct was generated from the following file: