Namespace drift::img¶
Namespace List > drift > img
Classes¶
Type | Name |
---|---|
class | GrayJpegCodec |
class | HslJpegCodec |
class | IImageCodec |
class | RgbJpegCodec |
class | WaveletImage |
Public Types¶
Type | Name |
---|---|
enum | ColorSpace |
Public Functions¶
Type | Name |
---|---|
void | ConvertHslToRgb (blaze::DynamicVector< blaze::DynamicMatrix< DataType >> * image, size_t start_channel=0) |
void | ConvertRgbToHsl (blaze::DynamicVector< blaze::DynamicMatrix< DataType >> * image, size_t start_channel=0) |
void | HSLToRGB (DataType hue, DataType saturation, DataType luminance, DataType * red, DataType * green, DataType * blue) |
void | RGBToHSL (DataType red, DataType green, DataType blue, DataType * hue, DataType * saturation, DataType * luminance) |
Public Types Documentation¶
enum ColorSpace¶
enum drift::img::ColorSpace {
kRGB = 1,
kHSL = 2,
kGray = 3
};
Public Functions Documentation¶
function ConvertHslToRgb¶
void drift::img::ConvertHslToRgb (
blaze::DynamicVector< blaze::DynamicMatrix< DataType >> * image,
size_t start_channel=0
)
Convert HSL blaze matrix to RGB matrix
Parameters:
RGB
Image matrixstart_channel
function ConvertRgbToHsl¶
void drift::img::ConvertRgbToHsl (
blaze::DynamicVector< blaze::DynamicMatrix< DataType >> * image,
size_t start_channel=0
)
Convert RGB blaze matrix to HSL matrix
Parameters:
RGB
Image matrixstart_channel
function HSLToRGB¶
void drift::img::HSLToRGB (
DataType hue,
DataType saturation,
DataType luminance,
DataType * red,
DataType * green,
DataType * blue
)
Convert pixel from HSL to RGB color space (all values are normalized)
Parameters:
hue
saturation
luminance
red
green
blue
function RGBToHSL¶
void drift::img::RGBToHSL (
DataType red,
DataType green,
DataType blue,
DataType * hue,
DataType * saturation,
DataType * luminance
)
Convert pixel from RGB to HSL color space (all values are normalized)
Parameters:
red
green
blue
hue
saturation
luminance
The documentation for this class was generated from the following file wavelet_buffer/img/color_space.h