Re: Regarding the Fit_Ellipse Program [message #59002 is a reply to message #58903] |
Thu, 28 February 2008 09:27   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
plim.dreaming@gmail.com writes:
> I certainly don't understand why there isn't a fit_ellipse program
> that works with the x,y array of the contour vertices instead of the
> pixel indices of the image of a contour (I wish I knew how to make one
> myself).
The problem with using the contour vertices, is that
they are not evenly spaced, so the "weighting" of
the ellipse would be wildly off. I do have a program,
named ARCSAMPLE, that can resample "reasonable" curves,
so that you have approximately equally spaced points
along the curve. Depending on what your "blob" looks
like, you might prefer to use this for calculating the
ellipse.
http://www.dfanning.com/programs/arcsample.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|