TuttleOFX  1
terry::color::layout Namespace Reference

Namespaces

namespace  cmyk
namespace  hsl
namespace  hsv
namespace  lab
namespace  luv
namespace  rgb
namespace  XYZ
namespace  YPbPr
namespace  yuv
namespace  Yxy

Typedefs

typedef boost::mpl::vector3
< hsl::hue_t,
hsl::saturation_t,
hsl::lightness_t > 
hsl_t
typedef boost::mpl::vector3
< hsl::hue_t,
hsv::saturation_t,
hsv::value_t > 
hsv_t
typedef boost::mpl::vector3
< lab::lightness_t, lab::a_t,
lab::b_t > 
lab_t
typedef boost::mpl::vector3
< luv::lightness_t, luv::u_t,
luv::v_t > 
luv_t
typedef boost::mpl::vector3
< XYZ::X_t, XYZ::Y_t, XYZ::Z_t > 
XYZ_t
typedef boost::mpl::vector3
< YPbPr::Y_t, YPbPr::Pb_t,
YPbPr::Pr_t > 
YPbPr_t
typedef boost::mpl::vector3
< yuv::y_t, yuv::u_t, yuv::v_t > 
yuv_t
typedef boost::mpl::vector3
< Yxy::Y_t, Yxy::x_t, Yxy::y_t > 
Yxy_t
typedef boost::gil::layout
< colorspace::rgb_t > 
rgb
typedef boost::gil::layout
< colorspace::rgba_t > 
rgba
typedef boost::gil::layout
< colorspace::yuv_t > 
yuv
typedef boost::gil::layout
< colorspace::YPbPr_t > 
YPbPr
typedef boost::gil::layout
< colorspace::hsv_t > 
hsv
typedef boost::gil::layout
< colorspace::hsl_t > 
hsl
typedef boost::gil::layout
< colorspace::lab_t > 
lab
typedef boost::gil::layout
< colorspace::luv_t > 
luv
typedef boost::gil::layout
< colorspace::XYZ_t > 
XYZ
typedef boost::gil::layout
< colorspace::Yxy_t > 
Yxy

Functions

template<class SrcLayout , class DslLayout , typename SrcP , typename DstP >
void layout_convert (const SrcP &src, DstP &dst)
template<typename SrcP , typename DstP >
void convertYPbPrToRgb (const SrcP &src, DstP &dst)
 YPbPr -> RGB.
template<typename SrcP , typename DstP >
void convertRgbToYPbPr (const SrcP &src, DstP &dst)
 RGB -> YPbPr.
template<typename SrcP , typename DstP >
void layout_convert< rgb_t, yuv_t > (const SrcP &src, DstP &dst)
 RGB -> YUV.
template<typename SrcP , typename DstP >
void layout_convert< yuv_t, rgb_t > (const SrcP &src, DstP &dst)
 YUV -> RGB.

Detailed Description

All supported layouts


Typedef Documentation

typedef boost::gil::layout<colorspace::hsl_t> terry::color::layout::hsl

Definition at line 20 of file layout.hpp.

typedef boost::gil::layout<colorspace::hsv_t> terry::color::layout::hsv

Definition at line 19 of file layout.hpp.

typedef boost::mpl::vector3< hsl::hue_t , hsv::saturation_t , hsv::value_t > terry::color::layout::hsv_t

Definition at line 30 of file hsv.hpp.

typedef boost::gil::layout<colorspace::lab_t> terry::color::layout::lab

Definition at line 21 of file layout.hpp.

typedef boost::mpl::vector3< lab::lightness_t , lab::a_t , lab::b_t > terry::color::layout::lab_t

Definition at line 30 of file lab.hpp.

typedef boost::gil::layout<colorspace::luv_t> terry::color::layout::luv

Definition at line 22 of file layout.hpp.

typedef boost::mpl::vector3< luv::lightness_t , luv::u_t , luv::v_t > terry::color::layout::luv_t

Definition at line 30 of file luv.hpp.

typedef boost::gil::layout<colorspace::rgb_t> terry::color::layout::rgb

Definition at line 15 of file layout.hpp.

typedef boost::gil::layout<colorspace::rgba_t> terry::color::layout::rgba

Definition at line 16 of file layout.hpp.

typedef boost::gil::layout<colorspace::XYZ_t> terry::color::layout::XYZ

Definition at line 23 of file layout.hpp.

typedef boost::mpl::vector3< XYZ::X_t , XYZ::Y_t , XYZ::Z_t > terry::color::layout::XYZ_t

Definition at line 30 of file XYZ.hpp.

typedef boost::gil::layout<colorspace::YPbPr_t> terry::color::layout::YPbPr

Definition at line 18 of file layout.hpp.

typedef boost::mpl::vector3< YPbPr::Y_t, YPbPr::Pb_t, YPbPr::Pr_t > terry::color::layout::YPbPr_t

Definition at line 31 of file YPbPr.hpp.

typedef boost::gil::layout<colorspace::yuv_t> terry::color::layout::yuv

Definition at line 17 of file layout.hpp.

typedef boost::mpl::vector3< yuv::y_t, yuv::u_t, yuv::v_t > terry::color::layout::yuv_t

Definition at line 28 of file yuv.hpp.

typedef boost::gil::layout<colorspace::Yxy_t> terry::color::layout::Yxy

Definition at line 24 of file layout.hpp.

typedef boost::mpl::vector3< Yxy::Y_t , Yxy::x_t , Yxy::y_t > terry::color::layout::Yxy_t

Definition at line 30 of file Yxy.hpp.


Function Documentation

template<typename SrcP , typename DstP >
void terry::color::layout::convertRgbToYPbPr ( const SrcP &  src,
DstP &  dst 
)

RGB -> YPbPr.

Definition at line 49 of file YPbPr.hpp.

template<typename SrcP , typename DstP >
void terry::color::layout::convertYPbPrToRgb ( const SrcP &  src,
DstP &  dst 
)

YPbPr -> RGB.

Definition at line 38 of file YPbPr.hpp.

template<class SrcLayout , class DslLayout , typename SrcP , typename DstP >
void terry::color::layout::layout_convert ( const SrcP &  src,
DstP &  dst 
)
template<typename SrcP , typename DstP >
void terry::color::layout::layout_convert< rgb_t, yuv_t > ( const SrcP &  src,
DstP &  dst 
)

RGB -> YUV.

Definition at line 34 of file yuv.hpp.

template<typename SrcP , typename DstP >
void terry::color::layout::layout_convert< yuv_t, rgb_t > ( const SrcP &  src,
DstP &  dst 
)

YUV -> RGB.

Definition at line 46 of file yuv.hpp.