How to Calculate Gears
Hello,
As shown in the attached image, I am working with a gear and would like to automatically calculate:
The tooth-to-root distance (the distance from the tooth tip to the bottom of the groove, passing through the gear's geometric center)
My questions are:
Are there any existing algorithms or established methods to automatically measure these gear tooth dimensions?
Are there any tools or libraries that can easily implement this functionality through macros or image processing?
I should note that the macro I've currently written only works for this specific gear image, but what I need is a solution that can be applied to images of any gear.
Attached is the macro I generated and the IQO file used.
Attached is the macro I generated and the IQO file used.
Thank you very much for your assistance!

0
Answers
-
2025-09-11-142940Howard --This is an interesting challenge.I have downloaded and reviewed the contents of the file namedGEAR.ZIPthat you posted here on the forum.I would like to run YOUR MACRO on a copy of YOUR IMAGE that does not include the IMAGE-PRO MEASUREMENT LINES. Will you amend this POST to include an ORIGINAL FULL SIZED COPY of one or more ORIGINAL SAMPLE IMAGES please.Thank you.-- MattMatthew M. Batchelor
Alces Imaging and Automation, LLC0 -
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions