You are here: Start » Program Examples » Measuring the L-Pipe (l_pipe)
Measuring the L-Pipe (l_pipe)
Aim
The task is to create an application that measures an angle and a width on an L-pipe.
Input
An image of an L-pipe. The location of the object, including the orientation, is variable.
Images are stored in l_pipe directory.
Output
Application should measure following elements:
.
Hints
This is a typical case for performing measurements aligned to an object's position.
In the first step the object has to be located. We recommend the LocateSingleObject_Edges filter for this purpose. Next, the interesting contours of the objects have to be detected with Shape Fitting filters such as FitSegmentToEdges.
It is important to appropriately connect the 'Alignment' inputs of these filters with the results of the Template Matching (outObject.Alignment). Finally, the measurements can be extracted with AngleBetweenSegments.
Measurement of pipe width can be done using MeasureObjectWidth filter.
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.