You are here: Start » AVL.NET » Invoke.LocateMultipleObjects_Edges2

Invoke.LocateMultipleObjects_Edges2

Finds all occurrences of a predefined template on an image by comparing object edges.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void LocateMultipleObjects_Edges2
(
	Avl.Image inImage,
	Optional<Avl.ShapeRegion> inSearchRegion,
	Optional<Avl.CoordinateSystem2D> inSearchRegionAlignment,
	Avl.EdgeModel2 inEdgeModel,
	int inMinPyramidLevel,
	Optional<int> inMaxPyramidLevel,
	float inEdgeThreshold,
	Avl.EdgePolarityMode inEdgePolarityMode,
	Avl.EdgeNoiseLevel inEdgeNoiseLevel,
	bool inIgnoreBoundaryObjects,
	int inMaxDeformation,
	float inMinScore,
	float inMinDistance,
	List<Avl.Object2D> outObjects,
	Optional<List<List<Avl.Path>>> outObjectEdges,
	Optional<int> outPyramidHeight,
	Optional<Avl.ShapeRegion> outAlignedSearchRegion,
	Diagnostic<List<Avl.Image>> diagEdgePyramid,
	Diagnostic<List<Avl.Image>> diagMatchPyramid,
	Diagnostic<List<List<float>>> diagScores
)

Parameters

Name Type Range Default Description
inImageAvl.ImageImage on which object occurrences will be searched.
inSearchRegionAtl.Optional<Avl.ShapeRegion>Region of possible object centers. Default value: atl::NIL.
inSearchRegionAlignmentAtl.Optional<Avl.CoordinateSystem2D>Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL.
inEdgeModelAvl.EdgeModel2Model of objects to be searched.
inMinPyramidLevelint<0, 12>0Defines the lowest pyramid level at which object position is still refined. Default value: 0.
inMaxPyramidLevelAtl.Optional<int><0, 12>3Defines the total number of reduced resolution levels that can be used to speed up computations. Default value: 3.
inEdgeThresholdfloat<0.01f, INF>10.0fMinimum strength of edges used for matching with the model. Default value: 10.0f.
inEdgePolarityModeAvl.EdgePolarityModeMatchStrictlyDefines how edges with reversed polarity will contribute to the object score. Default value: MatchStrictly.
inEdgeNoiseLevelAvl.EdgeNoiseLevelHighDefines how much noise the objects edges have. Default value: High.
inIgnoreBoundaryObjectsboolFalseFlag indicating whether objects crossing image boundary should be ignored or not. Default value: False.
inMaxDeformationint<0, INF>0Maximal distance in pixels between model edge and an edge visible in the input image. Default value: 0.
inMinScorefloat<0.0f, 1.0f>0.7fMinimum score of object candidates accepted at each pyramid level. Default value: 0.7f.
inMinDistancefloat<0.0f, INF>10.0fMinimum distance between two found objects. Default value: 10.0f.
outObjectsSystem.Collections.Generic.List<Avl.Object2D>Found objects.
outObjectEdgesAtl.Optional<System.Collections.Generic.List<System.Collections.Generic.List<Avl.Path>>>Model edges of the found objects.
outPyramidHeightAtl.Optional<int>Highest pyramid level used to speed up computations.
outAlignedSearchRegionAtl.Optional<Avl.ShapeRegion>Transformed input shape region.
diagEdgePyramidAvl.Diagnostic<System.Collections.Generic.List<Avl.Image>>Image edges used for matching at each pyramid level.
diagMatchPyramidAvl.Diagnostic<System.Collections.Generic.List<Avl.Image>>Candidate object locations found at each pyramid level.
diagScoresAvl.Diagnostic<System.Collections.Generic.List<System.Collections.Generic.List<float>>>Scores of the found objects at each pyramid level.

See also