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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Image from which model will be extracted | ||
![]() |
inTemplateRegion | Region | None | None | Region of the image from which model will be extracted | |
![]() |
inReferenceFrame | Rectangle2D | None | None | Exact position of the model object in the image | |
![]() |
inGradientDifferenceTolerance | AngleDifferenceTolerance | AngleDifferenceTolerance.Standard | Determines what gradient angles are considered to be similar | |
![]() |
inSmoothingStdDev | float | 0.0 - ![]() |
0.0 | Standard deviation of the gaussian smoothing applied before edge extraction |
![]() |
inEdgeThreshold | float | 0.0 - ![]() |
35.0 | Higher threshold for edge magnitude |
![]() |
inEdgeHysteresis | float | 0.0 - ![]() |
15.0 | Threshold hysteresis value for edge magnitude |
![]() |
inMinAngle | float | -180.0 | Start of range of possible rotations | |
![]() |
inMaxAngle | float | 180.0 | End of range of possible rotations | |
![]() |
inMinScale | float | 0.0 - ![]() |
1.0 | Start of range of possible scales |
![]() |
inMaxScale | float | 0.0 - ![]() |
1.0 | End of range of possible scales |
![]() |
outEdgeModel | EdgeModel_Elastic | None | Created model that can be used by Locate filter | ||
![]() |
outEdgeModelPoint | Point2D | None | The middle point of the created model | ||
![]() |
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.



