CIS 601 Spring 2008

Homework 2: Find the Gears


I found the following image in a description of a very old patent proposal. Please write a program that segments the toothed-wheels only, and tells the number of teeth.
Here's the image:

The result should show the 2 gears only (especially: not the disc on the right side), automatically segmented. Additionally the program should print the number of teeth.

This task combines morphological pre-processing with 1D fourier analysis. It's a typical task e.g. for quality control. There are some MATLAB functions you might want to look up:

This task has a lot in common with the demo program 'Fourier Shape Descriptors' (see demo files on class web-page). Pease download it and look at the sources. You probably could use some of the functions provided.


Good luck !