{"id":24275527,"url":"https://github.com/shameempk/pyciede2000","last_synced_at":"2025-06-20T11:07:08.776Z","repository":{"id":57455771,"uuid":"367637947","full_name":"shameempk/pyciede2000","owner":"shameempk","description":"Python library to calculate CIEDE2000 color difference.","archived":false,"fork":false,"pushed_at":"2022-03-07T15:11:11.000Z","size":16,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T19:47:21.164Z","etag":null,"topics":["ciede2000","color","color-difference","numpy","pyciede2000","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shameempk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-15T13:24:46.000Z","updated_at":"2024-12-13T13:19:25.000Z","dependencies_parsed_at":"2022-09-05T20:00:24.360Z","dependency_job_id":null,"html_url":"https://github.com/shameempk/pyciede2000","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shameempk/pyciede2000","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shameempk%2Fpyciede2000","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shameempk%2Fpyciede2000/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shameempk%2Fpyciede2000/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shameempk%2Fpyciede2000/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shameempk","download_url":"https://codeload.github.com/shameempk/pyciede2000/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shameempk%2Fpyciede2000/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260933186,"owners_count":23084949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ciede2000","color","color-difference","numpy","pyciede2000","python"],"created_at":"2025-01-15T21:35:32.869Z","updated_at":"2025-06-20T11:07:03.765Z","avatar_url":"https://github.com/shameempk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**About**\r\n\r\nPython implementation of CIEDE2000 color difference calculation based on this paper:\r\n\r\n[The CIEDE2000 Color-Difference Formula: Implementation Notes, Supplementary Test Data, and Mathematical Observations](http://www2.ece.rochester.edu/~gsharma/ciede2000/ciede2000noteCRNA.pdf).\r\n\r\nMore info: http://www2.ece.rochester.edu/~gsharma/ciede2000/\r\n\r\nUse this BibTeX to cite:\r\n```BibTeX\r\n@article{Sharma2005TheObservations,\r\n    title = {{The CIEDE2000 color-difference formula: Implementation notes, supplementary test data, and mathematical observations}},\r\n    year = {2005},\r\n    journal = {Color Research {\\\u0026} Application},\r\n    author = {Sharma, Gaurav and Wu, Wencheng and Dalal, Edul N},\r\n    number = {1},\r\n    month = {2},\r\n    pages = {21--30},\r\n    volume = {30},\r\n    publisher = {Wiley Subscription Services, Inc., A Wiley Company},\r\n    url = {http://dx.doi.org/10.1002/col.20070},\r\n    doi = {10.1002/col.20070},\r\n    issn = {1520-6378},\r\n    keywords = {CIE, CIE94, CIEDE2000, CIELAB, CMC, color-difference metrics}\r\n}\r\n```\r\n\r\n**Install**\r\n\r\n`pip install pyciede2000`\r\n\r\n**Usage**\r\n\r\n```python\r\nfrom pyciede2000 import ciede2000\r\n\r\nres = ciede2000((50.0000,2.6772,-79.7751), (50.0000,0.0000,-82.7485))\r\n\r\nprint(res)\r\n```\r\n\r\n`ciede2000` accepts two color values as tuples in _Lab_ representation. Also supports optional keyword parameters for para-metric weighting factor `k_L`, `k_C` and `k_H`.\r\n\r\n**Output format**\r\n\r\n`ciede2000()` returns a dict with all significant fields in CIEDE2000 calculation.\r\n\r\n```python\r\nres = {\r\n\t\"a_1_dash\": a_1_dash,\r\n\t\"a_2_dash\": a_2_dash,\r\n\t\"C_1_dash\": C_1_dash,\r\n\t\"C_2_dash\": C_2_dash,\r\n\t\"h_1_dash\": h_1_dash,\r\n\t\"h_2_dash\": h_2_dash,\r\n\t\"h_bar_dash\": h_bar_dash,\r\n\t\"G\": G,\r\n\t\"T\": T,\r\n\t\"S_L\": S_L,\r\n\t\"S_H\": S_H,\r\n\t\"S_C\": S_C,\r\n\t\"R_T\": R_T,\r\n\t\"delta_E_00\": delta_E_00\r\n}\r\n```\r\n\r\nYou might be only interested in the final delta value, `delta_E_00`.\r\n\r\n```\r\nprint(res['delta_E_00'])\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshameempk%2Fpyciede2000","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshameempk%2Fpyciede2000","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshameempk%2Fpyciede2000/lists"}