Back to FabImage Library website
You are here: Start » Function Reference » Image Analysis » FisFilter_CompareGoldenTemplate_Edges_Deprecated

FisFilter_CompareGoldenTemplate_Edges_Deprecated
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | FIL.h |
---|---|
Namespace: | fis |
Compares image edges with the edges of a perfect template. Significant differences are considered defects.
Syntax
void fis::FisFilter_CompareGoldenTemplate_Edges_Deprecated ( CompareGoldenTemplate_EdgesState& ioState, const fil::Image& inImage, const fil::Image& inGoldenImage, ftl::Optional<const fil::Region&> inRoi, bool inStaticModel, float inStdDevX, ftl::Optional<float> inStdDevY, float inEdgeThreshold, float inEdgeHysteresis, int inMaxDistance, fil::Region& outDefects, bool& outDefectsPresent, fil::Region& outMissingEdges, fil::Region& outExcessiveEdges, ftl::Optional<fil::Region&> outImageEdges = ftl::NIL, ftl::Optional<fil::Region&> outGoldenEdges = ftl::NIL, ftl::Optional<fil::Region&> outMatchingEdges = ftl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | CompareGoldenTemplate_EdgesState& | Object used to maintain state of the function. | |||
![]() |
inImage | const Image& | Input image | ||
![]() |
inGoldenImage | const Image& | Reference image containing no defects | ||
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed | |
![]() |
inStaticModel | bool | True | Flag indicating whether the model should be created only in the first iteration | |
![]() |
inStdDevX | float | 0.0 - ![]() |
2.0f | Amount of horizontal smoothing used by the edge filter |
![]() |
inStdDevY | Optional<float> | 0.0 - ![]() |
NIL | Amount of vertical smoothing used by the edge filter (Auto = inStdDevX) |
![]() |
inEdgeThreshold | float | 0.0 - ![]() |
35.0f | Sufficient edge strength; edges of that strength will always be detected |
![]() |
inEdgeHysteresis | float | 0.0 - ![]() |
15.0f | Value by which the edge threshold is decreased for edge points neighboring with sufficiently strong edges |
![]() |
inMaxDistance | int | 0 - ![]() |
2 | Maximal allowed distance between corresponding edges on the input and golden image |
![]() |
outDefects | Region& | Region of detected defects | ||
![]() |
outDefectsPresent | bool& | Flag indicating whether any defects were detected | ||
![]() |
outMissingEdges | Region& | Edges present on the golden image that are missing on the input image | ||
![]() |
outExcessiveEdges | Region& | Edges that are not present on the golden image | ||
![]() |
outImageEdges | Optional<Region&> | NIL | Edges on the input image | |
![]() |
outGoldenEdges | Optional<Region&> | NIL | Edges on the golden image | |
![]() |
outMatchingEdges | Optional<Region&> | NIL | Golden edges present on the input image |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outImageEdges, outGoldenEdges, outMatchingEdges.
Read more about Optional Outputs.