Class QuantizerWuOKLab
java.lang.Object
net.sourceforge.plantuml.png.quantx.QuantizerWuOKLab
Wu quantization over OKLab (L, a, b) instead of RGB.
- 3D histogram on L, a, b (32 bins per axis -> INDEX_BITS = 5, INDEX_COUNT = 33 for integrals)
- Cumulative moments/sums along each axis + squared sum (L^2 + a^2 + b^2)
- Recursive splitting (maximize variance) same as the original algorithm
- Average cube colors converted back to 8-bit sRGB
Notes:
- L in [0,1], a,b ~ [-0.5, 0.5] for sRGB; we clamp a,b to these limits
- “Moments” L/a/b are stored as double; weights remain int
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
QuantizerWuOKLab
public QuantizerWuOKLab()
-
-
Method Details
-
quantize
-