occt: master 14b741b0

Author Committer Branch Timestamp Parent
abv bugmaster master 2020-03-19 07:03:40 master 89180f98
Affected Issues  0031454: Visualization - perceptually uniform color scale
Changeset 0031454: Visualization - perceptually uniform color scale

Support of CIE Lab and Lch color spaces is introduced in Quantity_Color:
- Enumeration Quantity_TypeOfColor is extended by new values representing CIE Lab and Lch color spaces (with D65 2 deg illuminant).
- Conversion of RGB color to and from these color spaces is implemented in Quantity_Color class (within existing API).
- Color difference calculation using CIE Delta E 200 formula is implemented in method DeltaE2000().

New methods MakeUniformColors() and SetUniformColors() are added in class AIS_ColorScale, generating and setting color scale based on colors of the same lightness in CIE Lch color model.

DRAW commands vcolorconvert and vcolordiff are added to perform conversions and compute difference, respectively.
A new option -uniform is added in DRAW command vcolorscale, to set uniform color scale.

Added test grid v3d colors (color conversions and difference), test bugs vis bug31454 (uniform color scale)
mod - src/AIS/AIS_ColorScale.cxx Diff File
mod - src/AIS/AIS_ColorScale.hxx Diff File
mod - src/Quantity/Quantity_Color.cxx Diff File
mod - src/Quantity/Quantity_Color.hxx Diff File
mod - src/Quantity/Quantity_TypeOfColor.hxx Diff File
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff File
mod - tests/bugs/vis/bug22632 Diff File
add - tests/bugs/vis/bug31454 Diff File
add - tests/v3d/colors/begin Diff File
add - tests/v3d/colors/de2000 Diff File
add - tests/v3d/colors/de2000_sharma Diff File
add - tests/v3d/colors/rgb2lab Diff File
add - tests/v3d/colors/rgb2lch Diff File
add - tests/v3d/colors/stability Diff File
mod - tests/v3d/grids.list Diff File