Added possibility to set a "scale_factor" which downsamples the point cloud as a preprocessing step (for increasing speed).