Hardware manual
Average Intensity Impact Reference Guide
Datalogic Automation Inc. 3-146
How the Adaptive Template tool Works
This tool matches the gradient of the Input image to the best matched gradient in the neighborhood of the
corresponding gradient in the Trained image.
In the example above, the tool examines the pixels of the Input image and calculates the gradient at the pixel
shown. The pixel location is represented by the dot and the small arrow represents the gradient at that pixel.
The large arrow illustrates the mapping from the Input image to the Trained image. The dot in the Trained
image is the corresponding pixel and the rectangle is the neighborhood of the pixel where the tool searches
for a gradient match. The four small arrows represent gradients inside the search neighborhood. The red cir-
cle in the Trained image is the best match to the gradient in the Input image since it is nearly the same direc-
tion and magnitude.
Once the tool determines the best gradient match in the Input image, it uses the difference between the match
in the Trained Image and the original gradient from the Input Image. This difference is recorded as a pixel
value in the Difference image.
After the tool examines the entire set of pixels, it creates a Difference Image of all the gradient differences.
This Difference Image can then be used to perform blob or contrast analysis to find defects.
Average Intensity
See “Average Intensity” on page 3-92
Find Shape List The desired region of the image to search. If no shape is defined, the
entire image is processed.
Trained Image The Input Image is copied to this input when you train the tool. You
should not link an image to here, since it is replaced when you train the
tool.
Filter Width The maximum distance to search in the Input Image for the best gradient
match (in pixels).
Output Name What it is
Difference Image The difference between the Trained and Input images (click the Differ-
ence Image tab to view)
Input Name What it is
Input
Image
Trained
Image
Gradient
Matching
Gradient
Find
Shape
List