3D Fit of Centreline
조회 수: 4 (최근 30일)
이전 댓글 표시
I've got a 3D data set (shown below) and I want to fit it with a line, the points of this line fit need to be equidistant apart.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148927/image.png)
Any tools able to do this? Or methods of how to achieve this?
Many thanks, Will
댓글 수: 0
채택된 답변
Image Analyst
2015년 4월 10일
Have you tried a Savitzky-Golay filter on the x, y, and z independently? Attached is a demo of sgolayfilt() in the Signal Processing Toolbox.
댓글 수: 0
추가 답변 (1개)
Image Analyst
2015년 4월 10일
Do you want to smooth (regress) those points to get a smoother path? Or interpolate additional points in between those points while keeping those points where they are?
Of course we should not forget the venerable John D'Errico's interparc : http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc. It sounds like just what you want to do if you want to keep those training points fixed and interpolate evenly spaced points along the curve.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!