ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvColor::Convert Class Reference

Color space conversion. More...

#include <ecvColorTypes.h>

Static Public Member Functions

static Rgb hsl2rgb (float H, float S, float L)
 Converts a HSL color to RGB color space. More...
 
static Rgb hsv2rgb (float H, float S, float V)
 Converts a HSV color to RGB color space. More...
 

Static Protected Member Functions

static float hue2rgb (float m1, float m2, float hue)
 Method used by hsl2rgb. More...
 

Detailed Description

Color space conversion.

Definition at line 258 of file ecvColorTypes.h.

Member Function Documentation

◆ hsl2rgb()

static Rgb ecvColor::Convert::hsl2rgb ( float  H,
float  S,
float  L 
)
inlinestatic

Converts a HSL color to RGB color space.

Parameters
H[out] hue [0;360[
S[out] saturation [0;1]
L[out] light [0;1]
Returns
RGB color (unsigned byte)

Definition at line 266 of file ecvColorTypes.h.

References hue2rgb(), and ecvColor::MAX.

Referenced by FacetsClassifier::GenerateSubfamilyColor().

◆ hsv2rgb()

static Rgb ecvColor::Convert::hsv2rgb ( float  H,
float  S,
float  V 
)
inlinestatic

Converts a HSV color to RGB color space.

Parameters
H[out] hue [0;360[
S[out] saturation [0;1]
V[out] value [0;1]
Returns
RGB color (unsigned byte)

Definition at line 286 of file ecvColorTypes.h.

References ecvColor::RgbTpl< Type >::b, ecvColor::RgbTpl< Type >::g, ecvColor::MAX, and ecvColor::RgbTpl< Type >::r.

Referenced by ccColorFromScalarDlg::onApply(), and ccColorFromScalarDlg::updateColormaps().

◆ hue2rgb()

static float ecvColor::Convert::hue2rgb ( float  m1,
float  m2,
float  hue 
)
inlinestaticprotected

Method used by hsl2rgb.

Definition at line 336 of file ecvColorTypes.h.

Referenced by hsl2rgb().


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