Skip to content

Conversation

@tomcur
Copy link
Member

@tomcur tomcur commented Apr 22, 2025

This builds on #139, which added absolute color conversions (conversions without chromatic adaptation). The default method implementations added there use the chromatically-adapting methods and undo adaptation through additional matrix multiplies. For efficiency, we can do the absolute conversions using matrices that do not include adaptation in the first place.

This PR does that for ProPhoto RGB. More to follow.

Copy link
Member Author

@tomcur tomcur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the behavior is tested since #153.

Copy link
Collaborator

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming the tests validate that the matrix values are correct, looks good to me.

@tomcur
Copy link
Member Author

tomcur commented Apr 24, 2025

Assuming the tests validate that the matrix values are correct, looks good to me.

They do, but can't catch small errors.

@tomcur tomcur added this pull request to the merge queue Apr 24, 2025
Merged via the queue into linebender:main with commit a0c7038 Apr 24, 2025
16 checks passed
@tomcur tomcur deleted the prophoto-absolute branch April 24, 2025 09:02
tomcur added a commit that referenced this pull request Apr 24, 2025
Continuing the addition of absolute color conversion matrices. See also
#156.
github-merge-queue bot pushed a commit that referenced this pull request Apr 25, 2025
Continuing the addition of absolute color conversion matrices. See also
#156.
github-merge-queue bot pushed a commit that referenced this pull request Apr 30, 2025
Continuing the addition of absolute color conversion matrices. See also
#156.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants