필터 지우기
필터 지우기

Find a point that does not fit to ellipse from a set of (x,y) co-ordinates

조회 수: 1 (최근 30일)
Sreedu
Sreedu 2011년 3월 3일
Hello,
I have a set of (x,y) points which I am trying to fit to an ellipse. I used the Ellipse fit function by Tal Hendel ( http://www.mathworks.com/matlabcentral/fileexchange/22423-ellipse-fit). Some times I get imaginary semimajor/minor axis. When I plotted these set of data using plot() function, I see that I get imaginary values because one of the points in the set does not fit to the ellipse while the other points form almost an ellipse. How can I eliminate this one point? Hope I made it clear.
  댓글 수: 2
Paulo Silva
Paulo Silva 2011년 3월 3일
That method doesn't always give reliable values, try other method or just remove the point, use the datacursor to find the coordinates of that point.
One option that allows you to remove the point:
x(x=value)=[];
y(y=value)=[];
Sreedu
Sreedu 2011년 3월 4일
Thank you. Could you suggest any other method? Is there any uploaded file which I can use?

댓글을 달려면 로그인하십시오.

답변 (1개)

David Young
David Young 2011년 3월 3일
If there is only ever one incorrect point, you could simply omit each point in turn until you get a good fit to an ellipse. (You need some way to check the residual errors to test for goodness of fit, beyond just looking for imaginary values in the result. You might need to modify the function you are using to provide that.)
A more general possibility is the RANSAC algorithm, described here: http://en.wikipedia.org/wiki/Ransac. This allows for there to be many incorrect points.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by