CreateGoldenTemplate_Edges


Creates golden template for application in CompareGoldenTemplate_Edges filter.

Syntax

C++
C#
Python
 
def CreateGoldenTemplate_Edges(
	inTemplateImage: Image,
	inStdDevX: float,
	inEdgeThreshold: float,
	inEdgeHysteresis: float,
	outGoldenTemplate: EdgeGoldenTemplate,
	/,
	*,
	inTemplateArea: Rectangle2D | None = None,
	inMask: Region | None = None,
	inTemplateAreaAlignment: CoordinateSystem2D | None = None,
	inStdDevY: float | None = None,
	diagCroppedImage: Image | None = None,
	diagCroppedEdges: Region | None = None,
	diagEdges: Region | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inTemplateImage Image Template image containing an object with no defects
Input value inTemplateArea Rectangle2D | None None Desired area to compare
Input value inMask Region | None None Range of pixels to compare
Input value inTemplateAreaAlignment CoordinateSystem2D | None None Alignment of template bounded by inTemplateArea
Input value inStdDevX float 0.0 - Amount of horizontal smoothing used by the edge filter
Input value inStdDevY float | None 0.0 - None Amount of vertical smoothing used by the edge filter (Auto = inStdDevX)
Input value inEdgeThreshold float 0.0 - Sufficient edge strength; edges of that strength will always be detected on the template image
Input value inEdgeHysteresis float 0.0 - Value by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges
Output value outGoldenTemplate EdgeGoldenTemplate The output golden template structure
Diagnostic input diagCroppedImage Image | None None Cropped image to be analyzed
Diagnostic input diagCroppedEdges Region | None None Edges found on the cropped image
Diagnostic input diagEdges Region | None None Edges projected onto the input image