ScanSingleRidge3D_Direct
Locates the strongest high or low peak of surface height along a given path.
Syntax
C++
C#
Python
def ScanSingleRidge3D_Direct( inSurface: Surface, inScanPath: Path, /, *, inScanPathAlignment: CoordinateSystem2D | None = None, inSamplingStep: float | None = None, inScanWidth: int = 5, inSurfaceInterpolation: InterpolationMethod = InterpolationMethod.Bilinear, inRidgeScanParams: RidgeScanParams3D = RidgeScanParams3D(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, 2.0, RidgeOperator.Minimum, 5.0, SurfaceRidgePolarity.Any), inRidgeSelection: Selection = Selection.Best, inLocalBlindness: LocalBlindness | None = None, inMaxProfileGapWidth: int | None = 1, outAlignedScanPath: Path | None = None, outHeightProfile: Profile | None = None, outResponseProfile: Profile | None = None ) -> ( outRidge: SurfaceRidge1D | None, diagSamplingPoints: list[Path], diagSamplingStep: float )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | Input surface | ||
![]() |
inScanPath | Path | Path along which the scan is performed | ||
![]() |
inScanPathAlignment | CoordinateSystem2D | None | None | Adjusts the scan path to the position of the inspected object | |
![]() |
inSamplingStep | float | None | 0.0 - ![]() |
None | Distance between consecutive sampling points on the scan path; if Nil, the bigger of surface X and Y scales is chosen |
![]() |
inScanWidth | int | 1 - ![]() |
5 | Width of the scan field in pixels |
![]() |
inSurfaceInterpolation | InterpolationMethod | InterpolationMethod.Bilinear | Interpolation method used for extraction of surface points | |
![]() |
inRidgeScanParams | RidgeScanParams3D | RidgeScanParams3D(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, 2.0, RidgeOperator.Minimum, 5.0, SurfaceRidgePolarity.Any) | Parameters controlling the surface ridge extraction process | |
![]() |
inRidgeSelection | Selection | Selection.Best | Selection mode of the resulting ridge | |
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges | |
![]() |
inMaxProfileGapWidth | int | None | 0 - ![]() |
1 | Maximal number of consecutive not existing profile points |
![]() |
outRidge | SurfaceRidge1D | None | Found surface ridge | ||
![]() |
outAlignedScanPath | Path | None | None | Path along which the scan is performed; in the image coordinate system | |
![]() |
outHeightProfile | Profile | None | None | Extracted surface height profile | |
![]() |
outResponseProfile | Profile | None | None | Profile of the ridge operator response | |
![]() |
diagSamplingPoints | list[Path] | Array of paths each one containing the sampling points that contributed to a single value of the extracted profile; in the image coordinate system | ||
![]() |
diagSamplingStep | float | Used distance between consecutive sampling points on the scan path |




