Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Analysis » AvsFilter_CompareGoldenTemplate_Edges_Deprecated

AvsFilter_CompareGoldenTemplate_Edges_Deprecated


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Compares image edges with the edges of a perfect template. Significant differences are considered defects.

Syntax

void avl::AvsFilter_CompareGoldenTemplate_Edges_Deprecated
(
	CompareGoldenTemplate_EdgesState& ioState,
	const avl::Image& inImage,
	const avl::Image& inGoldenImage,
	atl::Optional<const avl::Region&> inRoi,
	bool inStaticModel,
	float inStdDevX,
	atl::Optional<float> inStdDevY,
	float inEdgeThreshold,
	float inEdgeHysteresis,
	int inMaxDistance,
	avl::Region& outDefects,
	bool& outDefectsPresent,
	avl::Region& outMissingEdges,
	avl::Region& outExcessiveEdges,
	atl::Optional<avl::Region&> outImageEdges = atl::NIL,
	atl::Optional<avl::Region&> outGoldenEdges = atl::NIL,
	atl::Optional<avl::Region&> outMatchingEdges = atl::NIL
)

Parameters

Name Type Range Default Description
ioState CompareGoldenTemplate_EdgesState& Object used to maintain state of the function.
inImage const Image& Input image
inGoldenImage const Image& Reference image containing no defects
inRoi Optional<const Region&> NIL Range of pixels to be processed
inStaticModel bool True Flag indicating whether the model should be created only in the first iteration
inStdDevX float 0.0 - 2.0f Amount of horizontal smoothing used by the edge filter
inStdDevY Optional<float> 0.0 - NIL Amount of vertical smoothing used by the edge filter (Auto = inStdDevX)
inEdgeThreshold float 0.0 - 35.0f Sufficient edge strength; edges of that strength will always be detected
inEdgeHysteresis float 0.0 - 15.0f Value by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges
inMaxDistance int 0 - 2 Maximal allowed distance between corresponding edges on the input and golden image
outDefects Region& Region of detected defects
outDefectsPresent bool& Flag indicating whether any defects were detected
outMissingEdges Region& Edges present on the golden image that are missing on the input image
outExcessiveEdges Region& Edges that are not present on the golden image
outImageEdges Optional<Region&> NIL Edges on the input image
outGoldenEdges Optional<Region&> NIL Edges on the golden image
outMatchingEdges Optional<Region&> NIL Golden edges present on the input image