You are here: Start » Program Examples » Gasket Inspection
Gasket Inspection
Aim
The task is to measure a distance between centers of gasket holes.
Input
An image containing a gasket. The position of the gasket is variable.
Output
Calculated distance between two pairs of holes.
Hints
Location of object is variable, therefore in the first step of an algorithm LocateSingleObject_Edges filter should be used. Then its output outObject.Alignment can be used as a reference CoordinateSystem2D to subsequent filters. Centers of holes can be found using FitCircleToEdges filters. Centers of the holes which are not closed can be found using FitArcToEdges.
Solution (FIS)
►Click here to show the solution.
Used Filters
►Click here to show the filters list.
Further Readings
- Shape Fitting - This article presents usage of the Shape Fitting technique.
- Template Matching - Most detailed description of the Template Matching technique.