Skip to content

C++ library for working with different color spaces, converting between color spaces and comparing colors

License

Notifications You must be signed in to change notification settings

roboticsai/ColorSpace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorSpace

Build status

C++ library for converting between color spaces and comparing colors.

Color Conversion

You can convert between any supported color spaces using the To template method:

ColorSpace::Lab lab(100, 0, 0);
ColorSpace::Cmy cmy;
lab.To<ColorSpace::Cmy>(&cmy);

Color Comparison

You can compare colors by using the Compare method of each comparison class:

ColorSpace::Lab a(100, 0, 0);
ColorSpace::Rgb b(255, 255, 255);
ColorSpace::Cie2000Comparison::Compare(&a, &b);

Currently Supported Color Spaces

  • CMY
  • CMYK
  • HSL
  • HSB
  • HSV
  • CIE L*AB
  • Hunter LAB
  • LCH
  • LUV
  • RGB
  • XYZ
  • YXY

Currently Supported Comparisons

  • Euclidean
  • CIE1976
  • CIE94
  • CIE2000
  • CMC

License

ColorSpace is licenced under the MIT License, see LICENSE for more information.

About

C++ library for working with different color spaces, converting between color spaces and comparing colors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.7%
  • C 1.1%
  • Python 0.2%