ScanMultipleEdges3D_Direct


Locates multiple changes of surface height along a given path.

Syntax

C++
C#
Python
 
def ScanMultipleEdges3D_Direct(
	inSurface: Surface,
	inScanPath: Path,
	/,
	*,
	inScanPathAlignment: CoordinateSystem2D | None = None,
	inSamplingStep: float | None = None,
	inScanWidth: int = 5,
	inSurfaceInterpolation: InterpolationMethod = InterpolationMethod.Bilinear,
	inEdgeScanParams: EdgeScanParams3D = EdgeScanParams3D(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, SurfaceEdgeTransition.LowToHigh),
	inMinDistance: float = 0.0,
	inMaxDistance: float | None = None,
	inLocalBlindness: LocalBlindness | None = None,
	inMaxProfileGapWidth: int | None = 1,
	outAlignedScanPath: Path | None = None,
	outHeightProfile: Profile | None = None,
	outResponseProfile: Profile | None = None
)
-> (
	outEdges: list[SurfaceEdge1D],
	diagSamplingPoints: list[Path],
	diagSamplingStep: float
)

Parameters

Name Type Range Default Description
Input value inSurface Surface Input surface
Input value inScanPath Path Path along which the scan is performed
Input value inScanPathAlignment CoordinateSystem2D | None None Adjusts the scan path to the position of the inspected object
Input value 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
Input value inScanWidth int 1 - 5 Width of the scan field in pixels
Input value inSurfaceInterpolation InterpolationMethod InterpolationMethod.Bilinear Interpolation method used for extraction of surface points
Input value inEdgeScanParams EdgeScanParams3D EdgeScanParams3D(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, SurfaceEdgeTransition.LowToHigh) Parameters controlling the surface edge extraction process
Input value inMinDistance float 0.0 - 0.0 Minimal distance between consecutive edges
Input value inMaxDistance float | None 0.0 - None Maximal distance between consecutive edges
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker edges can be detected in the vicinity of stronger edges
Input value inMaxProfileGapWidth int | None 0 - 1 Maximal number of consecutive not existing profile points
Output value outEdges list[SurfaceEdge1D] Found surface edges
Output value outAlignedScanPath Path | None None Path along which the scan is performed; in the image coordinate system
Output value outHeightProfile Profile | None None Extracted surface height profile
Output value outResponseProfile Profile | None None Profile of the edge (derivative) operator response
Diagnostic input 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
Diagnostic input diagSamplingStep float Used distance between consecutive sampling points on the scan path