implemented downsampling routine in order to speed up radius based filtering