From dd9748d192e5ac9dc1d78fde0b293987f30eaeff Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 13 Sep 2021 16:16:32 +0000 Subject: [PATCH] Fix bug when pc-sample is zero --- opendm/point_cloud.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/opendm/point_cloud.py b/opendm/point_cloud.py index 364ab1ea..91d3e791 100644 --- a/opendm/point_cloud.py +++ b/opendm/point_cloud.py @@ -76,12 +76,6 @@ def filter(input_point_cloud, output_point_cloud, standard_deviation=2.5, meank= log.ODM_ERROR("{} does not exist. The program will now exit.".format(input_point_cloud)) sys.exit(1) - if (standard_deviation <= 0 or meank <= 0) and sample_radius <= 0: - log.ODM_INFO("Skipping point cloud filtering") - # if using the option `--pc-filter 0`, we need copy input_point_cloud - shutil.copy(input_point_cloud, output_point_cloud) - return - filters = [] if sample_radius > 0: