Do you have any references of existing code or research that deals with correlation issues? We considered few home grown ideas (like measuring correlation level in each sample and then compacting a sample by that % before quantizing) but all of them were pretty computationally heavy...
I’d just google “spatial autocorrelation correction,” the top few hits are good intros. This is a pretty mature statistical field.
Lots of examples in ecology. Most techniques are regression based and pretty doable.