You are here: Start » FIL.NET » Invoke.CompareGoldenTemplate_Intensity
Compares an image with a template image considered to have no defects.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void CompareGoldenTemplate_Intensity ( Fil.Image inImage, Fil.GrayGoldenTemplate inGoldenTemplate, Optional<Fil.CoordinateSystem2D> inGoldenTemplateAlignment, float inMaxDifference, int inMinDefectRadius, Fil.Region outDefects, Fil.Region outDifferenceRegion, out bool outDefectsPresent, Fil.Region outEdgeRegion, Optional<Fil.Rectangle2D> outObjectPosition )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Input image. | ||
![]() | inGoldenTemplate | Fil.GrayGoldenTemplate | Golden gray template containing image of an object with no defects. | ||
![]() | inGoldenTemplateAlignment | Ftl.Optional<Fil.CoordinateSystem2D> | Adjusts the golden template to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inMaxDifference | float | <0.0f, INF> | 20.0f | Maximal allowed difference between corresponding pixels of the input and golden images. Default value: 20.0f. |
![]() | inMinDefectRadius | int | <0, INF> | 1 | Minimal radius of a defect. Default value: 1. |
![]() | outDefects | Fil.Region | Region of detected defects. | ||
![]() | outDifferenceRegion | Fil.Region | Region of pixels differing too much between the golden image and the input image. | ||
![]() | outDefectsPresent | bool | Flag indicating whether any defects were detected. | ||
![]() | outEdgeRegion | Fil.Region | Region of pixels that will not be compared. | ||
![]() | outObjectPosition | Ftl.Optional<Fil.Rectangle2D> | Position of the object being compared. |