This program extracts ColorMatrix1 and ColorMatrix2 from every DCP profile included in Adobe DNG converter. ColorMatrix1 is for illuminant A (tungsten, 2856K) ColorMatrix2 is for illuminant D65 (daylight, 6504K). This might be useful if you are making a raw converter or software that deals with raw photos.
exifreadandnatsortpython libraries from pip7zcommand, provided byp7zip-fullpackage on Ubuntuinnoextract, can be installed on macOS withbrew install innoextract
On macOS, run python3 extract_matrices.py /Library/Application\ Support/Adobe/CameraRaw/CameraProfiles/Adobe\ Standard
On Windows, you'll have to find the folder yourself
- Download the latest Adobe DNG Converter for Windows
- Run
./extract.sh path_to_downloaded_dng_converter.exe - Enjoy
camera_matrices.c