CortidQCT  1.2.2.52
Classes | Functions
CortidQCT::ColorToLabelMaps Namespace Reference

Namespace containing color to label maps. More...

Classes

struct  CustomMap
 A customaizable color to label map. More...
 

Functions

template<class Label , class Scalar >
Label defaultMap (Scalar red, Scalar green, Scalar blue)
 Default color to label map. More...
 

Detailed Description

Namespace containing color to label maps.

Function Documentation

template<class Label , class Scalar >
Label CortidQCT::ColorToLabelMaps::defaultMap ( Scalar  red,
Scalar  green,
Scalar  blue 
)
inline

Default color to label map.

Converts RGB color to labels by treating each color value as 8 bit components of a multi byte integerm where the red components represents the least significant byte and the blue component the most significant byte.

Template Parameters
LabelLabel type, must be construtible from 64 bit unsigned integer
ScalarScalar type of color components
Parameters
redred component
greengreen component
blueblue component
Returns
label as blue * 256^2 + green * 256 + red