Commit Graph
2 Commits
Author SHA1 Message Date
FredApps 520de5f4b2 cms: integrate main and validate constructor wire boundaries 2026-11-16 18:18:22 +01:00
Zach Shallbetter ce819906a5 craft-cms: public constructors for matrix/TRC and gray profiles (closes #61)
- Add Curve::gamma, Curve::parametric, and Curve::from_table constructors with finite and range validation.
- Add Profile::matrix_shaper accepting PCS D50-adapted matrices and populating chad for non-D50 white points.
- Add Profile::from_source_matrix adapting unadapted source primaries to PCS D50 via Bradford transform.
- Add Profile::gray constructor for monochrome display profiles.
- Validate curve samples remain within [0.0, 1.0] and verify colorant matrix invertibility post-quantization.
- Re-export math::Mat3 from the crate root.
- Add independent ICC oracle validation tests against moxcms verifying both matrix conventions produce exact color transforms (diff <= 1).
2026-10-14 11:53:23 -07:00