COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### diameter

• Email
• Follow

```Hi,
i am working on image processing and i want to find out the diameter of a gear so please help me out in finding the diameter
```
 0

See related articles to this posting

```"muhammad zain" <mzain116!@yahoo.com> wrote in message <hhf2l6\$mqi\$1@fred.mathworks.com>...
> Hi,
>    i am working on image processing and i want to find out the diameter of a gear so please help me out in finding the diameter

a hint:
- if(f) you own the image proc tbx

help regionprops;

us
```
 0

```On Dec 30, 3:23=A0am, "muhammad zain" <mzain1...@yahoo.com> wrote:
> Hi,
> =A0 =A0i am working on image processing and i want to find out the diamet=

-----------------------------------------------------
An example you can follow:
http://www.mathworks.com/matlabcentral/fileexchange/25157
A gear has several "diameters" - the outer one, the inner one, and
perhaps some interior diameters if there is some structure to the
gear.  Which do you want?  To get the outer diameter, take the convex
hull of the gear and calculate it's ECD: equivalent circular diameter
which is the diameter you get if you set the area of the convex hull
of the gear equal to the area of a circle (pi*D^2/4).
```
 0