Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image Analysis » CreateGoldenTemplate_Intensity

CreateGoldenTemplate_Intensity


Creates golden template for application in CompareGoldenTemplate_Intensity filter.

Name Type Range Description
inTemplateImage Image Template image containing an object with no defects
inTemplateArea Rectangle2D* Desired area to compare
inMask Region* Range of pixels to compare
inTemplateAreaAlignment CoordinateSystem2D* Alignment of template bounded by inTemplateArea
inEdgeThreshold Real 0.0 - Minimum strength of edges on the golden image near which comparison is NOT performed
inEdgeDilation Integer 0 - 1000000 Defines for how far from the detected edges comparison is NOT performed
outGoldenTemplate GrayGoldenTemplate The output golden template structure
diagCroppedImage Image Cropped image to be analyzed
diagCroppedEdgeRegion Region Region of pixels that will not be compared
diagEdgeRegion Region Edges projected onto the input image

Description

This filter creates a template structure that can be later used in CompareGoldenTemplate_Intensity filter. This golden template method is especially useful for finding defects like: smudges, noises and dust particles. It can be used for finding missing holes or changes in complex shapes.

Filter finds edges on an image and removes nearby pixels to avoid comparing pixels near edges which may contains some distortions due to shadows or changes in lightning. Input inEdgeDilation defines the width of the quiet zone around the edges and the parameter inEdgeThreshold define how strong must be change of the color between pixels to treat them as an edge.

More information about this technique can be found in Machine Vision Guide: Golden Template.

Hints

  • A golden template comparison filter should be preceded with filters finding the object in certain location. Most typically we do this with LocateSingleObject_Edges filter.
  • Connect the inTemplateImage input with the image containing the perfect object.
  • Set inEdgeThreshold to a value that assures detection of all object edges, so that defects appearing near the edges can be ignored. Verify this setting with the diagEdgeRegion output – it should be present near the edges.

Remarks

Due to performance, it is recommended to create a template outside a main loop of a program. It will create a model only once, instead of each iteration.

Complexity Level

This filter is available on Basic Complexity Level.

Filter Group

This filter is member of CreateGoldenTemplate filter group.

See Also