Direct Graphical Models  v.1.7.0
DirectGraphicalModels::vis::colorspaces Namespace Reference

Color space transformations. More...

Functions

cv::Scalar rgb2bgr (cv::Scalar rgb)
 Transforms color from RGB to BGR. More...
 
cv::Scalar bgr2rgb (cv::Scalar bgr)
 Transforms color from RGB to BGR. More...
 
cv::Scalar hsv2bgr (cv::Scalar hsv)
 Transforms color from HSV to BGR space. More...
 
cv::Scalar hsv2rgb (cv::Scalar hsv)
 Transforms color from HSV to RGB space. More...
 

Detailed Description

Color space transformations.

This namespace collects methods for converting color between color spaces

Author
Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de

Function Documentation

◆ bgr2rgb()

cv::Scalar DirectGraphicalModels::vis::colorspaces::bgr2rgb ( cv::Scalar  bgr)
inline

Transforms color from RGB to BGR.

Parameters
bgrColor in Blue-Green-Red format
Returns
Color in Red-Green-Blue format

Definition at line 37 of file ColorSpaces.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hsv2bgr()

cv::Scalar DirectGraphicalModels::vis::colorspaces::hsv2bgr ( cv::Scalar  hsv)
inline

Transforms color from HSV to BGR space.

Parameters
hsvColor in Hue-Saturation-Value color space
Hue:[0; 360); Saturation:[0; 255]: Value:[0; 255]
Returns
Color in Blue-Green-Red format

Definition at line 44 of file ColorSpaces.h.

Here is the caller graph for this function:

◆ hsv2rgb()

cv::Scalar DirectGraphicalModels::vis::colorspaces::hsv2rgb ( cv::Scalar  hsv)
inline

Transforms color from HSV to RGB space.

Parameters
hsvColor in Hue-Saturation-Value color space
Hue:[0; 360); Saturation:[0; 255]: Value:[0; 255]
Returns
Color in Red-Green-Blue format

Definition at line 107 of file ColorSpaces.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rgb2bgr()

cv::Scalar DirectGraphicalModels::vis::colorspaces::rgb2bgr ( cv::Scalar  rgb)
inline

Transforms color from RGB to BGR.

Parameters
rgbColor in Red-Green-Blue format
Returns
Color in Blue-Green-Red format

Definition at line 23 of file ColorSpaces.h.

Here is the caller graph for this function: