We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b972de9 commit 125b16bCopy full SHA for 125b16b
Quantize.c
@@ -15,6 +15,7 @@ static inline void QuantCluster_Train(struct QuantCluster_t *Dst, const struct B
15
struct BGRAf_t Dist = BGRAf_Sub(Data, &Dst->Centroid);
16
17
float DistW = BGRAf_Len2(&Dist);
18
+ DistW *= 1.0f + fabsf(Dist.b); //! <- Further penalize distortion by luma distortion
19
float TrainW = 0.001f + DistW; //! <- This will help outliers pop out more often (must not be 0.0!)
20
struct BGRAf_t TrainData = BGRAf_Muli( Data, TrainW);
21
struct BGRAf_t DistData = BGRAf_Muli(&Dist, DistW);
0 commit comments