Skip to content

Gamut volume calculation and visualisation in Python. This project is based on Matlab code from IDMS V1.1 Section 5.32, which can be obtained at DOI: 10.55410/bjxb8678

Notifications You must be signed in to change notification settings

mooonseeker/gamut-volume-python

Repository files navigation

gamut-volume-python

Gamut volume calculation and visualisation in Python

This project is based on Matlab code from IDMS V1.1 Section 5.32,
which can be obtained at DOI: 10.55410/bjxb8678

Pre-requisites

  • Python
  • numpy
  • matplotlib
  • colour-science

Function reference

cgats

Read from and write to a CGATS data file, the standard ASCII CGATS.17 file format is recommended.

make_gamut_envelope

Convert RGB/XYZ data to RGB/3D color space coordinate data.

  • Supported model:
    • CIELAB-D50: RGB/LAB
    • CAM16-UCS: RGB/Jab
    • ICtCp: RGB/ICtCp

get_volume

Take the RGB/3D color space coordinate data as input and return the gamut volume in delta E3.
The Moller-Trumbore ray-triangle intersection algorithm is used.
If a reference is provided, calculate the gamut volume coverage.

visualisation

Take the RGB/3D color space coordinate data as input and visualize the gamut volume.

  • 3D gamut volume scatter graph
  • 2D gamut ring graph

About

Gamut volume calculation and visualisation in Python. This project is based on Matlab code from IDMS V1.1 Section 5.32, which can be obtained at DOI: 10.55410/bjxb8678

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages