fitting curve to binary object
이전 댓글 표시
hello, can any one please help me fit the best curve to the following binary image?

i meaning some thing like the red curve.

댓글 수: 5
What do you call a curve? A spline? A polynomial equation? What makes the red curve you've drawn any better than anything else?
Wouldn't the best curve be simply all the boundary pixels (which you'd obtain simply with bwboundaries)?
Guillaume
2016년 3월 3일
In order to fit a set of points to something, you first need to define what that something. A curve can mean anything. a line, a spline, a quadratic (like in your first example), a half-ellipse (like in your second example), etc. Until you've decided what class of curve you want to fit, you won't be able to do any fitting.
Abo
2016년 3월 3일
Guillaume
2016년 3월 3일
That green line looks like a half ellipse to me.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
