Back to FabImage Library website
You are here: Start » Function Reference » Computer Vision » Image Analysis » CompareGoldenTemplate2

CompareGoldenTemplate2
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Compares an image with a multi-image model using an ensemble of image features approach.
Applications: Finding general object defects by analyzing brightness deviations from a template image.
Syntax
C++
C#
void fil::CompareGoldenTemplate2 ( const fil::Image& inImage, const fil::GoldenTemplate2Model& inModel, float inSensitivityA, float inSensitivityB, fil::Region& outDefects )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | ||
![]() |
inModel | const GoldenTemplate2Model& | |||
![]() |
inSensitivityA | float | 0.0 - ![]() |
1.0f | Usually influences small, distinctive defects. |
![]() |
inSensitivityB | float | 0.0 - ![]() |
0.95f | Usually influences bigger, extensive defects. |
![]() |
outDefects | Region& |
Description
This filter compares pixels of the input images against a template created by CreateGoldenTemplate2 and creates a region containing only pixels that are different.
The filter expects the object to be positioned precisely and in the same way as object images used to construct the inModel - see CreateGoldenTemplate2.
Sensitivity of the filter can be adjusted using inSensitivityA and inSensitivityB parameters.
See Also
- CreateGoldenTemplate2 – Create a model to be used with CompareGoldenTemplate2 filter.