https://github.com/lypheo/color-tools
Gamut plotter for VapourSynth
https://github.com/lypheo/color-tools
colorspaces vapoursynth-plugins
Last synced: about 1 month ago
JSON representation
Gamut plotter for VapourSynth
- Host: GitHub
- URL: https://github.com/lypheo/color-tools
- Owner: Lypheo
- Created: 2020-01-14T20:53:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T16:57:10.000Z (over 3 years ago)
- Last Synced: 2023-03-05T01:44:15.616Z (about 3 years ago)
- Topics: colorspaces, vapoursynth-plugins
- Language: C
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```py
core.color.ShowGamut(clip clip[, string gamut])
```
Plots the 1931 chromaticity diagram, highlighting the specified gamut (or nothing if not supplied/``gamut == ""``).
All colors that appear in a given frame are colored black in the diagram, or white if they lie outside the specified gamut.
Expects linear XYZ clips which you can obtain like so, for example:
```py
linear = core.resize.Point(src, format=vs.RGBS, range_in_s="full", transfer_in_s="srgb", transfer_s="linear")
xyz = core.resize.Point(linear, primaries_in_s="709", primaries_s="xyz")
```
It may be necessary to clamp linear RGB values if converting from YCbCr in order to avoid pixels outside the images’s gamut being marked.
Supported gamuts:
```
"dcip3"
"adobe98"
"adobewide"
"apple"
"ciergb"
"filmc"
"jedec_p22"
"470bg"
"470m"
"2020"
"smpte_c"
```