Login  Register

Re: Antwort: Ellipse Fitting

Posted by Michael Doube on Jan 04, 2010; 8:26am
URL: http://imagej.273.s1.nabble.com/Ellipse-Fitting-tp3689852p3689854.html

Joachim

You can hit the 'raw' link, which shows you this page:
http://github.com/mdoube/BoneJ/raw/master/src/org/doube/geometry/FitEllipse.java

Or download the whole source of the BoneJ project by hitting the
download source button (you can choose the latest commit of master or
one of the older tagged versions)
http://github.com/mdoube/BoneJ/archives/master

If anyone can help fix the Taubin method your suggestions are very
welcome; the original MATLAB code is here:
http://www.mathworks.co.uk/matlabcentral/fileexchange/22683-ellipse-fit-taubin-method

Michael

Joachim Wesner wrote:

> Hi Michael,
>
> Interesting, however could you give a short hint how to download the source
> as a Java file on that site, I can“t get neither "download source", nor
> "copy to clipboard" to work.
> (Also cut and paste seems to have problems!?)
>
> Cheers
>
> Joachim Wesner
>
>
>
>                                                                            
>              Michael Doube                                                
>              <m.doube@IMPERIAL                                            
>              .AC.UK>                                                    An
>              Gesendet von:              [hidden email]                
>              ImageJ Interest                                         Kopie
>              Group                                                        
>              <[hidden email].                                       Thema
>              GOV>                       Ellipse Fitting                    
>                                                                            
>                                                                            
>              03.01.2010 22:00                                              
>                                                                            
>                                                                            
>               Bitte antworten                                              
>                     an                                                    
>               ImageJ Interest                                              
>                    Group                                                  
>              <[hidden email].                                            
>                    GOV>                                                    
>                                                                            
>                                                                            
>
>
>
>
> Hi all
>
> In response to David Webster's request for ellipse-fitting code, I have
> got something mostly working.  I have ported the "direct" ellipse fit
> from a MATLAB script, (which seems to work OK), but haven't got the
> Taubin fit to work properly yet.  I think this may have something to do
> with MATLAB's eig(A,B) function, which isn't directly implemented in
> JAMA.  If anyone has any hints about how to circumvent this limitation
> I'd be glad to hear it.
>
> FitEllipse is available as Java code here:
> http://github.com/mdoube/BoneJ/blob/master/src/org/doube/geometry/FitEllipse.java