You are here: Start » FIL.NET » Invoke.LocateSingleObject_SAD
Finds a single occurrence of a predefined template on an image by analysing the Square Average Difference between pixel values.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void LocateSingleObject_SAD ( Fil.Image inImage, Optional<Fil.ShapeRegion> inSearchRegion, Optional<Fil.CoordinateSystem2D> inSearchRegionAlignment, Fil.GrayModel inGrayModel, int inMinPyramidLevel, Optional<int> inMaxPyramidLevel, bool inIgnoreBoundaryObjects, float inMaxDifference, Conditional<Fil.Object2D> outObject, Optional<int> outPyramidHeight, Optional<Fil.ShapeRegion> outAlignedSearchRegion, Diagnostic<List<Fil.Image>> diagImagePyramid, Diagnostic<List<Fil.Image>> diagMatchPyramid, Diagnostic<Conditional<List<float>>> diagScores )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Image on which model occurrence will be searched. | ||
![]() | inSearchRegion | Ftl.Optional<Fil.ShapeRegion> | Possible centers of the object occurrence. Default value: ftl::NIL. | ||
![]() | inSearchRegionAlignment | Ftl.Optional<Fil.CoordinateSystem2D> | Adjusts the region of interest to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inGrayModel | Fil.GrayModel | Model which will be sought. | ||
![]() | inMinPyramidLevel | int | <0, 12> | 0 | Defines the highest resolution level. Default value: 0. |
![]() | inMaxPyramidLevel | Ftl.Optional<int> | <0, 12> | 3 | Defines the number of reduced resolution levels that can be used to speed up computations. Default value: 3. |
![]() | inIgnoreBoundaryObjects | bool | False | Flag indicating whether objects crossing image boundary should be ignored or not. Default value: False. | |
![]() | inMaxDifference | float | <0.0f, INF> | 0.0f | Maximum accepted average difference between pixel values. Default value: 0.0f. |
![]() | outObject | Ftl.Conditional<Fil.Object2D> | Found object. | ||
![]() | outPyramidHeight | Ftl.Optional<int> | Highest pyramid level used to speed up computations. | ||
![]() | outAlignedSearchRegion | Ftl.Optional<Fil.ShapeRegion> | Transformed input shape region. | ||
![]() | diagImagePyramid | Fil.Diagnostic<System.Collections.Generic.List<Fil.Image>> | Pyramid of iteratively downsampled input image. | ||
![]() | diagMatchPyramid | Fil.Diagnostic<System.Collections.Generic.List<Fil.Image>> | Locations found on each pyramid level. | ||
![]() | diagScores | Fil.Diagnostic<Ftl.Conditional<System.Collections.Generic.List<float>>> | Scores of found match on each pyramid level. |