Statistics for Adaptive local statistics filtering