Commit Graph

8 Commits

Author SHA1 Message Date
kris 2ab582790c Create data directory before writing to it 2023-01-31 21:12:42 +00:00
kris 629104b933 Fixes for python 3.10 and/or latest dependency versions 2023-01-21 17:29:06 +00:00
kris 1ffb2c9110 Tidy 2022-07-18 09:59:01 +01:00
kris 3159a09c27 Uncomment 2021-11-18 20:33:21 +00:00
kris ed2082344a Working version! Quantize the k-means centroids in 12-bit //gs RGB
space but continue to use CAM16-UCS for distances and updating
centroid positions, before mapping back to the nearest legal 12-bit
RGB position.

Needs some more work to deal with the fact that now that there are
discrete distances (but no fixed minimum) between allowed centroid
positions, the previous notion of convergence doesn't apply.  Actually
the centroids can oscillate between positions.

There is room for optimization but this is already reasonably
performant, and the image quality is much higher \o/
2021-11-17 22:49:06 +00:00
kris 3544bd74c8 Update comment 2021-11-02 22:14:59 +00:00
kris 0f1ec6f6f2 Optimize memory a bit 2021-11-02 21:25:00 +00:00
kris feefdb5dc6 Use .npy format for RGB to CAM16UCS conversion matrix, and get rid of precomputed CIE2000 distances 2021-07-19 18:35:44 +01:00