Fix bug when pc-sample is zero

pull/1346/head
Piero Toffanin 2021-09-13 16:16:32 +00:00
rodzic 868e1b92b0
commit dd9748d192
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -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: