diff --git a/src/py4dgeo/segmentation.py b/src/py4dgeo/segmentation.py index 596e2332..c1ea29ec 100644 --- a/src/py4dgeo/segmentation.py +++ b/src/py4dgeo/segmentation.py @@ -941,8 +941,8 @@ def find_seedpoints(self): # Check whether the volume started decreasing if previous_volume > volume: - # Only add seed if larger than the minimum period - if target_idx - start_idx >= self.minperiod: + # Only add seed if larger than the minimum period and height of the change form larger than threshold + if (target_idx - start_idx >= self.minperiod) and (np.abs(np.max(used_timeseries) - np.min(used_timeseries)) >= self.height_threshold): corepoint_seeds.append( RegionGrowingSeed(i, start_idx, target_idx) )