Color Models
TOC
-
Description
- Color models or what this library make this library.
Note
-
All color models are combination of template class
color::model and next types as its template parameter :
-
std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t,
-
std::int8_t, std::int16_t, std::int32_t, std::int64_t,
float, double, long double,
color::type::split233_t,
color::type::split323_t,
color::type::split422_t,
color::type::split556_t,
color::type::split655_t,
color::type::uint24_t,
color::type::uint48_t.
List
-
-
- Name
- cmy
- Declaration
template< typename type_name >
using cmy = ::color::model< ::color::category::cmy< unspecified > >;
- Note
- Above mentioned list of types applies to this
type_name.
- Description
- Implements CMY color model.
- Example
::color::cmy< double > c;
::color::cmy< std::uint8_t > c1;
- See also
- Wikipedia CMYK
- Name
- cmyk
- Declaration
template< typename type_name >
using cmyk = ::color::model< ::color::category::cmyk< unspecified > >;
- Description
- Implements CMYK color model.
- Example:
::color::cmyk< double > c;
::color::cmyk< std::uint8_t > c1;
- See also
- Wikipedia CMYK
- Name
- gray
- Declaration
template< typename type_name >
using gray = ::color::model< ::color::category::gray< unspecified > >;
- Description
- Implements gray color model.
- Example:
::color::gray< double > c;
::color::gray< std::uint8_t > c1;
- See also
- Wikipedia Grayscale
- Name
- hsi
- Declaration
template< typename type_name >
using hsi = ::color::model< ::color::category::hsi< unspecified > >;
- Description
- Implements HSI color model.
- Example:
::color::hsi< double > c;
::color::hsi< std::uint8_t > c1;
- See also
- Wikipedia HSI
- Name
- hsl
- Declaration
template< typename type_name >
using hsl = ::color::model< ::color::category::hsl< unspecified > >;
- Description
- Implements HSL color model.
- Example:
::color::hsl< double > c;
::color::hsl< std::uint8_t > c1;
- See also
- Wikipedia HSL
- Name
- hsv
- Declaration
template< typename type_name >
using hsv = ::color::model< ::color::category::hsv< unspecified > >;
- Description
- Implements HSV color model.
- Example:
::color::hsv< double > c;
::color::hsv< std::uint8_t > c1;
- See also
- Wikipedia HSV
- Name
- hwb
- Declaration
template< typename type_name >
using hwb = ::color::model< ::color::category::hwb< unspecified > >;
- Description
- Implements HWB color model.
- Example:
::color::hwb< double > c;
::color::hwb< std::uint8_t > c1;
- See also
- Wikipedia HWB
- Name
- tls
- Declaration
template< typename type_name >
using tls = ::color::model< ::color::category::tls< unspecified > >;
- Description
- Implements TLS color model.
- Example:
::color::tls< double > c;
::color::tls< std::uint8_t > c1;
- See also
- Wikipedia TLS
- Name
- lab
- Declaration
template< typename type_name, ::color::constant::lab::reference_enum reference_number = ::color::constant::lab::CIE_entity >
using lab = ::color::model< ::color::category::lab< unspecified > >;
- Description
- Implements LAB( CIE and Hunter ) color model.
- Example:
::color::lab< double > c;
::color::lab< std::uint8_t > c1;
- See also
-
Wikipedia LAB
Specify reference of LAB.
- Name
- LabCH
- Declaration
template< typename type_name >
using LabCH = ::color::model< ::color::category::LabCH< unspecified > >;
- Description
- Implements LabCH Cylindrical LAB.
- Example:
::color::LabCH< double > c;
::color::LabCH< std::uint8_t > c1;
- See also
- Wikipedia LAB
- Name
- lms
- Declaration
template< typename type_name, ::color::constant::lms::reference_enum reference_number = ::color::constant::lms::von_Kries_D65_entity >
using lms = ::color::model< ::color::category::lms< unspecified > >;
- Description
- Implements LMS color model.
- Example:
::color::lms< double > c;
::color::lms< std::uint8_t > c1;
- See also
-
Wikipedia LMS
Specify reference of LMS.
- Name
- luv
- Declaration
template< typename type_name >
using luv = ::color::model< ::color::category::luv< unspecified > >;
- Description
- Implements LUV(CIELUV) color model.
- Example:
::color::luv< double > c;
::color::luv< std::uint8_t > c1;
- See also
- Wikipedia LUV
- Name
- LuvCH
- Declaration
template< typename type_name >
using LuvCH = ::color::model< ::color::category::LuvCH< unspecified > >;
- Description
- Implements LuvCH, Cylindrical LUV.
- Example:
::color::LUV< double > c;
::color::luv< std::uint8_t > c1;
- See also
- Wikipedia LUV
- Name
- rgb ( bgr, rgba, argb, abgr and bgra )
- Declaration
-
template< typename type_name > using rgb = ::color::model< ::color::category::rgb< unspecified > >;
template< typename type_name > using bgr = ::color::model< ::color::category::rgb< unspecified > >;
template< typename type_name > using rgba = ::color::model< ::color::category::rgb< unspecified > >;
template< typename type_name > using argb = ::color::model< ::color::category::rgb< unspecified > >;
template< typename type_name > using abgr = ::color::model< ::color::category::rgb< unspecified > >;
template< typename type_name > using bgra = ::color::model< ::color::category::rgb< unspecified > >;
- Description
- Implements RGB color model .
- Example:
::color::rgb< double > c;
::color::rgb< std::uint8_t > c1;
- See also
- Wikipedia RGB
- Name
- xyy
- Declaration
template< typename type_name >
using xyy = ::color::model< ::color::category::xyy< unspecified > >;
- Description
- Implements xyY color model.
- Example:
::color::xyy< double > c;
::color::xyy< std::uint8_t > c1;
- Note
- It is used:
- Space: sRGB
- White point: D65
- Observer: 2°
- See also
- Wikipedia xyY
- Name
- xyz
- Declaration
template< typename type_name >
using xyz = ::color::model< ::color::category::xyz< unspecified > >;
- Description
- Implements XYZ color model.
- Example:
::color::xyz< double > c;
::color::xyz< std::uint8_t > c1;
- Note
- It is used:
- Space: sRGB
- White point: D65
- Observer: 2°
- See also
- Wikipedia XYZ
- Name
- yiq
- Declaration
template< typename type_name >
using yiq = ::color::model< ::color::category::yiq< unspecified > >;
- Description
- Implements YIQ color model.
- Example:
::color::yiq< double > c;
::color::yiq< std::uint8_t > c1;
- See also
- Wikipedia YIQ
- Name:
- yuv
- Declaration:
template< typename type_name, ::color::constant::yuv::reference_enum reference_number = ::color::constant::yuv::BT_709_entity >
using yuv = ::color::model< ::color::category::yuv< unspecified > >;
- Description:
- Implements YUV color model.
- Example:
::color::yuv< double > c;
::color::yuv< std::uint8_t > c1;
- See also:
- Wikipedia YUV
Specify reference of YUV.
- Name
- YCgCo
- Declaration
template< typename type_name >
using YCgCo = ::color::model< ::color::category::YCgCo< unspecified > >;
- Description
- Implements YCgCo color model.
- Example:
::color::YCgCo< double > c;
::color::YCgCo< std::uint8_t > c1;
- See also
- Wikipedia YCgCo
- Name
- YDbDr
- Declaration
template< typename type_name >
using YDbDr = ::color::model< ::color::category::YDbDr< unspecified > >;
- Description
- Implements YDbDr color model.
- Example:
::color::YDbDr< double > c;
::color::YDbDr< std::uint8_t > c1;
- See also
- Wikipedia YDbDr
- Name
- YPbPr
- Declaration
template< typename type_name, ::color::constant::YPbPr::reference_enum reference_number = ::color::constant::YPbPr::BT_709_entity >
using YPbPr = ::color::model< ::color::category::YPbPr< unspecified > >;
- Description
- Implements YPbPr color model.
- Example:
::color::YPbPr< double > c;
::color::YPbPr< std::uint8_t > c;
- See also:
-
Wikipedia YPbPr
Wikipedia YCbCr
Where is YCbCr?
Specify reference of YPbPr.