You are here: Start » Tutorial Exercises » Shape Fitting: Gasket (shape_fitting_gasket)
Shape Fitting: Gasket (shape_fitting_gasket)
Aim
Your task is to create a program which will be able to measure the distance between two holes in a gasket.
Input
Images of a gasket having variable location and rotation.
The input images are stored in
gasket_inspection
directory.
Output
The distance between the centers of two holes.
Hints
Start the program as in the "Edge-based Template Matching: Gasket" tutorial. Then use FitCircleToEdges filters to precisely detect the holes and PointToPointDistance to measure the distance between their centers.
Solution (FIS)
►Click here to show the solution.