基于MATLAB的密集有序数据点的B样条曲线逼近(误差可控)
密集有序数据点的B样条曲线逼近(误差可控)-MATLAB。
·
背景
函数实现
function [P, U] = approximate_points(Q, p, alpha, TOL)
% INPUT
% Q - data points, [dim, n_points]
% p - degree of spline
% alpha - parametrization strategy, 1.0-chord-lengt, 0.5-centripetal
% TOL - tolerance of curve approximation
%
% OUTPUT
% P - control points of spline curve
% U - knot-vector of spline curve
if ~ismatrix(Q)
fprintf('the Input Q must be matrix \n');
return
end
[P, U] = approximate_points_impl(Q, p, alpha, TOL);
end
实例展示
视频展示
密集有序数据点的B样条曲线逼近(误差可控)-MATLAB

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐
所有评论(0)