how to apply cubic spline interpolation curve fitting

조회 수: 2 (최근 30일)
rsnandi
rsnandi 2019년 7월 14일
댓글: rsnandi 2019년 7월 18일
Hi , I have a curve detected in an image. now i have to use cubic spline interpolation for curve fitting or extending the curves and want to find the point of intersection of these curves. I have attached the images both the input and output which I want. I have already separated the points of left and right curves.Regards

채택된 답변

John D'Errico
John D'Errico 2019년 7월 14일
What I think you do not understand is those curves are noisy, and you do not understand splines. The curves you drew are not noisy, no do they even go near the ends of the curve. In fact, they break away at some point, where you seem to think they should do so. A spline would never be able to know that however.
So you do not want to do cubic spline interpolation, because the extrapolation would be completely meaningless garbage where you try to extend the curves. You don't even want to do some sort of cubic spline fitting, because again, a spline would follow the curve, not peel away from it at some computationally unknowable spot.
Instead, take a short segment of the data near the break from each curve, in the part of the curve that you TRUST, not the part that you seem to want to ignore. Then just use a LOW order polynomial to fit. A straight line would be your best choice, given the noisiness of the curves. Then find the intersection of those straight lines.
  댓글 수: 4
rsnandi
rsnandi 2019년 7월 14일
John D, thanks for your detailed reply. you cleared my lots of doubts. hi,thanks. but I need such output curve shown with red curve over whiteone.
rsnandi
rsnandi 2019년 7월 18일
Please reply my question

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by