Color Spaces - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Color Spaces for Use with ColorTools[Color]

 

Description

Examples

Description

• 

To construct a Color data structure, you must specify a color space. The coordinates of each color space are floats between 0 and 1 unless noted. The known color spaces are:

– 

RGB - Red Green Blue - hardware dependent additive color space

– 

Gs - Grayscale - a perceptually uniform monochrome space

– 

CMYK - Cyan Magenta Yellow Key - hardware dependent subtractive color space

– 

HSV - Hue Saturation Value - hardware dependent cylindrical color space

– 

HSL - Hue Saturation Lightness - hardware dependent cylindrical color space

– 

XYZ - CIE 1931 color space modeling retinal stimulus response

– 

xyY - CIE 1931 color space combining chromaticity (x,y) with retinal stimulus

– 

Lab - Lightness a-chroma b-chroma -CIE 1976 color space with Euclidean distance modeling perceptual distance, a is a green to magenta coordinate, while b is a blue to yellow coordinate

– 

Luv - Lightness u-chroma v-chroma - alternate CIE 1976 color space with Euclidean distance modeling perceptual distance, u is a green to magenta coordinate, while v is a blue to yellow coordinate

– 

LCHab - Lightness Chroma Hue - CIE 1976 cylindrical color system with a and b rewritten in polar coordinates with radius C (chroma) and angle H (hue)

– 

LCHuv - Lightness Chroma Hue - CIE 1976 cylindrical color system with u and v rewritten in polar coordinates with radius C (chroma) and angle H (hue)

– 

JCh - Lightness Chroma Hue - CIE CAM02 cylindrical color system

– 

Jab - Lightness a-chroma b-chroma - CIE CAM02 JCh converted to rectangular coordinates

– 

YUV - Lightness u-chroma v-chroma - YUV color the BT.470 version of the color space used in SDTV PAL video encoding, implemented via ImageTools:-RGBtoYUV. Y is luminance and U and V are red and blue chrominance respectively.

Examples

withColorTools:

spacesRGB,HSV,HSL,CMY,CMYK,XYZ,LMS,xyY,Lab,Luv,LCHab,LCHuv,HCL,Jab,JCh,YUV,Gs

spacesRGB,HSV,HSL,CMY,CMYK,XYZ,LMS,xyY,Lab,Luv,LCHab,LCHuv,HCL,Jab,JCh,YUV,Gs

(1)

CColorNiagara Red

CRGB : 0.471 0 0.0549

(2)

DocumentTools:-TabulateSpace,Coordinates,seqs,ArrayConvertC,s,sinspaces,weights=1,10:

Space

Coordinates

RGB

0.470588240.0.054901961

HSV

0.98055555571.0000000000.47058824

HSL

0.98055555571.0000000000.2352941200

CMY

0.529411761.0.945098039

CMYK

0.0.470588240.4156862790.52941176

XYZ

0.07824908266578817220.04024517520333691780.00779847104730019280

LMS

0.07336378334676155190.01330770101740439030.00845109805867775600

xyY

0.6195850175790390550.3186658135320626360.0402451752033369178

Lab

23.752330703455889746.165945504882927329.7977554304216739

Luv

23.752330703455889775.936436932642720913.9560206497537784

LCHab

23.752330703455889754.947254281274553032.8401730266391496

LCHuv

23.752330703455889777.208244160850981110.4139239596422275

HCL

0.98055555570.47058824000.1472156877

Jab

0.28111101700.28875764140.1403320579

JCh

0.18700562060.65476643530.07199745795

YUV

0.146964707313999993−0.04523921628400000280.283921571499999970

Gs

0.237523307034558900

 

See Also

ColorTools

ColorTools[Color]