CropSurface_Relative
Removes from the surface points that are relatively too distant from their average neighbor points in a local rectangular neighborhood.
Syntax
C++
C#
Python
def CropSurface_Relative( inSurface: Surface, inBaseSurface: Surface, outSurface: Surface, /, *, inRoi: Region | None = None, inMinRelativeHeight: float | None = None, inMaxRelativeHeight: float | None = None, inHysteresis: float = 0.0, inPreserveDimensions: bool = False, outRejected: Region | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | Input surface | ||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inBaseSurface | Surface | Heights of this surface are subtracted from inSurface heights before crop | ||
![]() |
inMinRelativeHeight | float | None | None | Minimum relative height of a point to be not removed | |
![]() |
inMaxRelativeHeight | float | None | None | Maximum relative height of a point to be not removed | |
![]() |
inHysteresis | float | 0.0 - ![]() |
0.0 | Defines how much the threshold criteria are lowered for points neighboring with other not removed points |
![]() |
inPreserveDimensions | bool | False | Flag indicating whether the surface dimensions should be preserved or not | |
![]() |
outSurface | Surface | |||
![]() |
outRejected | Region | None | None | Region of locations where points are removed |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



