📄 perform_curve_warping.m
字号:
function [y,ss] = perform_curve_warping( c, x, s )
% perform_curve_warping - perform a warping with respect to a central curve.
%
% y = perform_curve_warping( c, x, s );
%
% 'c' is a curve, i.e. a 2xP matrix.
% 'x' is a set of 3D points, i.e. a 2xn matrix.
% 's' is optional and is the curvilinear absice.
%
% 'ss' is the curvilinear absice.
% 'y' is the position of the warped points.
%
% yi = y(:,i) is the position of the ith point.
% yi(1) is the curvilinear absisce of the nearest point
% from xi=x(:,i) on the curve c (with linear interpolation).
% yi(2) is the signed distance between
% xi and the curve.
%
% For example, if 'c' is just a straight line,
% then the warping is just a rotation that
% aligns the line with the Y axis.
%
% Copyright (c) 2004 Gabriel Peyr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -