Counting Teeth

Use some image processing algorithms to count the number of teeth on a gear.

You are now following this Submission

This file demonstrates how the Cell Execution Mode is useful in creating and publishing MATLAB script M-files. Starting with a picture of a clock gear, we work step by step to determine how many teeth are on the gear. See the related News and Notes article for more information.

Cite As

Ned Gulley (2026). Counting Teeth (https://www.mathworks.com/matlabcentral/fileexchange/6002-counting-teeth), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.1

Updated license

1.2.0.0

Changed the gear image.

1.0.0.0