perform_curve_warping.m

来自「A toolbox to handle 2D curve and multire」· M 代码 · 共 24 行

M
24
字号
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 + =
减小字号Ctrl + -
显示快捷键?