CreateEdgeModel_Elastic


Creates a model for edge-based template matching.

Applications:Dynamic creation of models in the runtime environment (normally they are created interactively in Studio).

Syntax

C++
C#
Python
 
def CreateEdgeModel_Elastic(
	inImage: Image,
	/,
	*,
	inTemplateRegion: Region | None = None,
	inReferenceFrame: Rectangle2D | None = None,
	inGradientDifferenceTolerance: AngleDifferenceTolerance = AngleDifferenceTolerance.Standard,
	inSmoothingStdDev: float = 0.0,
	inEdgeThreshold: float = 35.0,
	inEdgeHysteresis: float = 15.0,
	inMinAngle: float = -180.0,
	inMaxAngle: float = 180.0,
	inMinScale: float = 1.0,
	inMaxScale: float = 1.0
)
-> (
	outEdgeModel: EdgeModel_Elastic | None,
	outEdgeModelPoint: Point2D | None,
	outEdges: list[Path] | None
)

Parameters

Name Type Range Default Description
Input value inImage Image Image from which model will be extracted
Input value inTemplateRegion Region | None None Region of the image from which model will be extracted
Input value inReferenceFrame Rectangle2D | None None Exact position of the model object in the image
Input value inGradientDifferenceTolerance AngleDifferenceTolerance AngleDifferenceTolerance.Standard Determines what gradient angles are considered to be similar
Input value inSmoothingStdDev float 0.0 - 0.0 Standard deviation of the gaussian smoothing applied before edge extraction
Input value inEdgeThreshold float 0.0 - 35.0 Higher threshold for edge magnitude
Input value inEdgeHysteresis float 0.0 - 15.0 Threshold hysteresis value for edge magnitude
Input value inMinAngle float -180.0 Start of range of possible rotations
Input value inMaxAngle float 180.0 End of range of possible rotations
Input value inMinScale float 0.0 - 1.0 Start of range of possible scales
Input value inMaxScale float 0.0 - 1.0 End of range of possible scales
Output value outEdgeModel EdgeModel_Elastic | None Created model that can be used by Locate filter
Output value outEdgeModelPoint Point2D | None The middle point of the created model
Output value outEdges list[Path] | None Visualization of the model edges found at the original resolution

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.