internal ColorDist(Config cfg) { Configuration = cfg; YccConfiguration = new() { LuminanceWeight = Configuration.LuminanceWeight, ChrominanceWeight = Configuration.ChrominanceWeight }; }
internal DeposterizeContext( Vector2I size, Vector2B wrapped, int passes, int threshold, int blockSize, bool useRedmean = false ) { Size = size; Wrapped = wrapped; Passes = passes; Threshold = threshold * 256; BlockSize = blockSize; UseRedmean = useRedmean; YccConfiguration = new() { LuminanceWeight = 1.0, ChrominanceWeight = 1.0 }; }