Loading [MathJax]/extensions/tex2jax.js

You are here: Start » Tutorial Exercises » Counting Saw Teeth (count_teeth)

Counting Saw Teeth (count_teeth)

Aim

Create an application that finds the number of blade's teeth.

Input

A single image of the saw blade.

Image is stored in count_teeth directory.

Output

A number of teeth.

Hints

Teeth of blade are located evenly around the mounting hole of the blade.

Locate central mounting point using DetectSingleCircle. Measure a blade radius using the measuring distance tool.

Blade teeth can be measured like stripes using ScanMultipleStripes.

Create circular path for scanning path using CreateCirclePath filter. This filter converts geometrical shape to the set of straight segments. It is necessary to select value of inPointCount that will make possible of scanning each tooth.

Solution (FIS)

►Click here to show the solution.

Solution (C++)

►Click here to show C++ solution.

Additional Tasks

  • Unroll the image along the circular path into a single straight image using ImageAlongPath.
  • Find the mounting using the Blob Analysis techniques.