Loading [MathJax]/extensions/tex2jax.js

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.

Output

Application should measure following elements:

  1. An angle (blue) of type Real.
  2. A pipe width(violet) of type Real.

.

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_Edges1 filter for this purpose. Next, the interesting contours of the objects have to be detected with Shape Fitting filters such as the 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 the AngleBetweenSegments.

Measurement of the pipe width can be done using the MeasureObjectWidth filter.

Labeling connections is explained in this article.

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.