ProfileEdges


Finds the locations at which the profile values raise or fall quickly.

Applications:Can be used for 1D edge detection when the brightness profile is extracted from an image in a non-standard way.

Syntax

C++
C#
Python
 
def ProfileEdges(
	inProfile: Profile,
	/,
	*,
	inRange: Range | None = None,
	inCyclic: bool = False,
	inEdgeScanParams: EdgeScanParams = EdgeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, EdgeTransition.BrightToDark),
	inMinDistance: float = 0.0,
	inMaxDistance: float | None = None,
	inLocalBlindness: LocalBlindness | None = None,
	outResponseProfile: Profile | None = None
)
-> (
	outEdges: list[ProfileEdge],
	outDistances: list[float]
)

Parameters

Name Type Range Default Description
Input value inProfile Profile Input profile
Input value inRange Range | None None
Input value inCyclic bool False
Input value inEdgeScanParams EdgeScanParams EdgeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, EdgeTransition.BrightToDark) Parameters controlling the 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
Output value outEdges list[ProfileEdge] Found edges
Output value outDistances list[float] Output distances between consecutive edges
Output value outResponseProfile Profile | None None Profile of the edge (derivative) operator response