Re Find distance between donut
Message-ID:
Subject:
Re: Find distance between donut
Date:Wed, 1 Oct 2008 13:33:50 +0100
Thanks for the response. Really it isn't a circle i just just said that so i could easily describe what I have. Lets say it will be an arbitrary shape mostly circular but not necessarily though and i want the average distance (width as you mentioned) at several points ( say 4 points) around the object then average those width measurements to get the "average width". As i mentioned in the previous post I have an inner and outer line. On Sep 30, 9:18=A0pm, ImageAnalystwrote: > On Sep 30, 9:32=A0am, villuman...@gmail.com wrote: > > > If i have a binary mask lets say the shape of a donut and I want to > > find the distance between the two edges of the donut at several > > points, how exactly would I do this? > > ---------------------------------------------- > Find the coordinates of the edges. =A0Then use the Pythagorean theorem. > What do you really want to know? =A0Do you want the average width of the > donut? =A0Then you can get this better by finding the area of the circle > with the outer perimeter, the area of the hole and subtracting them, > then doing some elementrary math (assuming the areas to be perfect > circles) to get the difference in the two average radii. =A0Using this > method there's no need to loop over all the boundary points > calculating distances. > Regards, > ImageAnalyst



RSS News Feed