<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240408</link>
    <title>MATLAB Central Newsreader - Ellipse Fitting</title>
    <description>Feed for thread: Ellipse Fitting</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 04 Dec 2008 04:30:58 -0500</pubDate>
      <title>Ellipse Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240408#614952</link>
      <author>djordjep@gmail.com</author>
      <description>Hello all, i have a problem with ellipse fitting experiment i'm trying&lt;br&gt;
to do for my class:&lt;br&gt;
&lt;br&gt;
In an experiment of image processing, we have collected the scattered&lt;br&gt;
data of an ellipse, which is contained in the data file and figure&lt;br&gt;
attached in zip file.&lt;br&gt;
Question asked is to  estimate the location, size and orientation of&lt;br&gt;
the ellipse from the scattered data and to draw the ellipse which best&lt;br&gt;
fits the scattered data based on the estimation results.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.pcprooncall.com/ellipse.zip&quot;&gt;http://www.pcprooncall.com/ellipse.zip&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
How would i go about using that set of data into my function? I tried&lt;br&gt;
to open a file with data, but all i get&lt;br&gt;
&amp;gt;&amp;gt; load('C:\Users\George\Documents\ellipse_v7.mat')&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&lt;br&gt;
And nothing happens after that.&lt;br&gt;
&lt;br&gt;
Any help or pointers would be greatly appriciated. I'm not great with&lt;br&gt;
Matlab, but i'm trying to learn</description>
    </item>
    <item>
      <pubDate>Thu, 04 Dec 2008 06:50:20 -0500</pubDate>
      <title>Re: Ellipse Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240408#614959</link>
      <author>Roger Stafford</author>
      <description>djordjep@gmail.com wrote in message &amp;lt;984e419b-b5fd-4acb-bf80-bcb09dffcce6@v15g2000yqn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello all, i have a problem with ellipse fitting experiment i'm trying&lt;br&gt;
&amp;gt; to do for my class:&lt;br&gt;
&amp;gt; ........&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Here's one approach you might consider.  Assuming you are in two dimensional space, any ellipse can be described by the equation&lt;br&gt;
&lt;br&gt;
&amp;nbsp;A*x^2 + B*x*y + C*y^2 + D*x + E*y + F = 0&lt;br&gt;
&lt;br&gt;
with appropriate values of A, B, C, D, E, and F.  If x, y, and z are column vectors of the three corresponding coordinate of your data points, form the matrix M:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;M = [x.^2,x.*y,y.^2,x,y,ones(size(x))];&lt;br&gt;
&lt;br&gt;
Then use the singular value decomposition function:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;[U,S,V] = svd(M,0);&lt;br&gt;
&lt;br&gt;
The sixth (last) column of V will contain the least squares values of [A;B;C;D;E;F] subject to the restriction that the sum of their squares is one.  (This latter is necessary because the ellipse's equation is homogeneous in the six coefficients.)&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;For many (but not all) point sets this can be considered a &quot;best&quot; fit to an ellipse.  One drawback it possesses is that this solution does not remain strictly invariant with respect to translations of the coordinate system.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Thu, 04 Dec 2008 18:31:02 -0500</pubDate>
      <title>Re: Ellipse Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240408#615103</link>
      <author>Rafael Herrejon</author>
      <description>djordjep@gmail.com wrote in message &amp;lt;984e419b-b5fd-4acb-bf80-bcb09dffcce6@v15g2000yqn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello all, i have a problem with ellipse fitting experiment i'm trying&lt;br&gt;
&amp;gt; to do for my class:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In an experiment of image processing, we have collected the scattered&lt;br&gt;
&amp;gt; data of an ellipse, which is contained in the data file and figure&lt;br&gt;
&amp;gt; attached in zip file.&lt;br&gt;
&amp;gt; Question asked is to  estimate the location, size and orientation of&lt;br&gt;
&amp;gt; the ellipse from the scattered data and to draw the ellipse which best&lt;br&gt;
&amp;gt; fits the scattered data based on the estimation results.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.pcprooncall.com/ellipse.zip&quot;&gt;http://www.pcprooncall.com/ellipse.zip&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How would i go about using that set of data into my function? I tried&lt;br&gt;
&amp;gt; to open a file with data, but all i get&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; load('C:\Users\George\Documents\ellipse_v7.mat')&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; And nothing happens after that.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help or pointers would be greatly appriciated. I'm not great with&lt;br&gt;
&amp;gt; Matlab, but i'm trying to learn&lt;br&gt;
&lt;br&gt;
to be able to see the data, you have assign it to something,for example&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data=load('C:\Users\George\Documents\ellipse_v7.mat')&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x = data(:,1)';&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y = data(:,2)';&lt;br&gt;
&lt;br&gt;
etc&lt;br&gt;
&lt;br&gt;
btw, there are some fitellipse functions in FileExchange</description>
    </item>
  </channel>
</rss>

