Ellipse Fitting

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Ellipse Fitting

Michael Doube
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

Mike
Reply | Threaded
Open this post in threaded view
|

Antwort: Ellipse Fitting

Joachim Wesner
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


Mike



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Antwort: Ellipse Fitting

Michael Doube
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