K-means weightp
Improve compability with AviSynth+