SMIL  1.0.3
Colour images conversions

Detailed Description

Color space conversion format conversion and gradient :

+ Collaboration diagram for Colour images conversions:

Functions

RES_T RGBToXYZ (const Image< RGB > &imRgbIn, Image< RGB > &imXyzOut)
 RGBToXYZ. More...
 
RES_T XYZToRGB (const Image< RGB > &imXyzIn, Image< RGB > &imRgbOut)
 XYZToRGB. More...
 
RES_T XYZToLAB (const Image< RGB > &imXyzIn, Image< RGB > &imLabOut)
 XYZToLAB. More...
 
RES_T LABToXYZ (const Image< RGB > &imLabIn, Image< RGB > &imXyzOut)
 LABToXYZ. More...
 
RES_T RGBToHLS (const Image< RGB > &imRgbIn, Image< RGB > &imHlsOut)
 RGBToHLS. More...
 
RES_T HLSToRGB (const Image< RGB > &imHlsIn, Image< RGB > &imRgbOut)
 HLSToRGB. More...
 
RES_T RGBToHSV (const Image< RGB > &imRgbIn, Image< RGB > &imHlsOut)
 RGBToHSV. More...
 
RES_T RGBToLAB (const Image< RGB > &imRgbIn, Image< RGB > &imLabOut)
 RGBToLAB. More...
 
RES_T LABToRGB (const Image< RGB > &imLabIn, Image< RGB > &imRgbOut)
 LABToRGB. More...
 
template<class T >
RES_T RGBToLuminance (const Image< RGB > &imRgbIn, Image< T > &imLumOut)
 RGBToLuminance. More...
 
RES_T gradientLAB (const Image< RGB > &imIn, Image< UINT8 > &imOut, const StrElt &se=DEFAULT_SE, bool convertFirstToLAB=true)
 gradientLAB More...
 
Image< UINT8 > gradientLAB (const Image< RGB > &imIn, const StrElt &se=DEFAULT_SE, bool convertFirstToLAB=true)
 gradientLAB More...
 
RES_T gradientHLS (const Image< RGB > &imIn, Image< UINT8 > &imOut, const StrElt &se=DEFAULT_SE, bool convertFirstToHLS=true)
 gradientHLS More...
 
Image< UINT8 > gradientHLS (const Image< RGB > &imIn, const StrElt &se=DEFAULT_SE, bool convertFirstToHLS=true)
 gradientHLS More...
 

Function Documentation

◆ RGBToXYZ()

RES_T RGBToXYZ ( const Image< RGB > &  imRgbIn,
Image< RGB > &  imXyzOut 
)

RGBToXYZ.

Parameters
[in]imRgbIn: input Image
[out]imXyzOut: output Image

◆ XYZToRGB()

RES_T XYZToRGB ( const Image< RGB > &  imXyzIn,
Image< RGB > &  imRgbOut 
)

XYZToRGB.

Parameters
[in]imXyzIn: input Image
[out]imRgbOut: output Image

◆ XYZToLAB()

RES_T XYZToLAB ( const Image< RGB > &  imXyzIn,
Image< RGB > &  imLabOut 
)

XYZToLAB.

Parameters
[in]imXyzIn: input Image
[out]imLabOut: output Image

◆ LABToXYZ()

RES_T LABToXYZ ( const Image< RGB > &  imLabIn,
Image< RGB > &  imXyzOut 
)

LABToXYZ.

Parameters
[in]imLabIn: input Image
[out]imXyzOut: output Image

◆ RGBToHLS()

RES_T RGBToHLS ( const Image< RGB > &  imRgbIn,
Image< RGB > &  imHlsOut 
)

RGBToHLS.

Parameters
[in]imRgbIn: input Image
[out]imHlsOut: output Image

◆ HLSToRGB()

RES_T HLSToRGB ( const Image< RGB > &  imHlsIn,
Image< RGB > &  imRgbOut 
)

HLSToRGB.

Parameters
[in]imHlsIn: input Image
[out]imRgbOut: output Image

◆ RGBToHSV()

RES_T RGBToHSV ( const Image< RGB > &  imRgbIn,
Image< RGB > &  imHlsOut 
)

RGBToHSV.

Parameters
[in]imRgbIn: input Image
[out]imHlsOut: output Image

◆ RGBToLAB()

RES_T RGBToLAB ( const Image< RGB > &  imRgbIn,
Image< RGB > &  imLabOut 
)

RGBToLAB.

Parameters
[in]imRgbIn: input Image
[out]imLabOut: output Image

◆ LABToRGB()

RES_T LABToRGB ( const Image< RGB > &  imLabIn,
Image< RGB > &  imRgbOut 
)

LABToRGB.

Parameters
[in]imLabIn: input Image
[out]imRgbOut: output Image

◆ RGBToLuminance()

RES_T smil::RGBToLuminance ( const Image< RGB > &  imRgbIn,
Image< T > &  imLumOut 
)

RGBToLuminance.

Parameters
[in]imRgbIn: input Image
[out]imLumOut: output Image

◆ gradientLAB() [1/2]

RES_T gradientLAB ( const Image< RGB > &  imIn,
Image< UINT8 > &  imOut,
const StrElt se = DEFAULT_SE,
bool  convertFirstToLAB = true 
)

gradientLAB

Parameters
[in]imIn: input RGB Image
[out]imOut: output Image (UINT8 Gray Level)
[in]se: Structuring Element
[in]convertFirstToLAB: Convert to LAB

◆ gradientLAB() [2/2]

Image< UINT8 > gradientLAB ( const Image< RGB > &  imIn,
const StrElt se = DEFAULT_SE,
bool  convertFirstToLAB = true 
)

gradientLAB

Parameters
[in]imIn: input RGB Image
[in]se: Structuring Element
[in]convertFirstToLAB: Convert to LAB
Returns
Image (UINT8 Gray Level)

◆ gradientHLS() [1/2]

RES_T gradientHLS ( const Image< RGB > &  imIn,
Image< UINT8 > &  imOut,
const StrElt se = DEFAULT_SE,
bool  convertFirstToHLS = true 
)

gradientHLS

Parameters
[in]imIn: input RGB Image
[out]imOut: output Image (UINT8 Gray Level)
[in]se: Structuring Element
[in]convertFirstToHLS: Convert to LAB

◆ gradientHLS() [2/2]

Image< UINT8 > gradientHLS ( const Image< RGB > &  imIn,
const StrElt se = DEFAULT_SE,
bool  convertFirstToHLS = true 
)

gradientHLS

Parameters
[in]imIn: input RGB Image
[in]se: Structuring Element
[in]convertFirstToHLS: Convert to HLS
Returns
Image (UINT8 Gray Level)