You are here: Start » Program Examples » Plate Measurement

Plate Measurement

Aim

The aim of the program is to measure the the length of a metal plate.

Input

An image of a metal plate.

Output

Calculated distance between horizontal edges.

Hints

The solution of this problem is immediate if a proper filter for measuring object width is used.

Solution (AVS)

  1. Add EnumerateImages filter.
  2. Add MeasureObjectWidth filter.
  3. Connect outImage with inImage.
  4. Click on MeasureObjectWidth filter and make these changes in Properties window (in the lower left corner):

Macrofilter Main

Used Filters

Icon Name Description
MeasureObjectWidth Measures the width of an object using stripe detection.
EnumerateImages Emulates image acquisition with images stored on disk.

Further Readings