sdf2circle3.m
来自「水平集分割算法的C-V模型」· M 代码 · 共 9 行
M
9 行
function f = sdf2circle3(nrow,ncol, ic,jc,r)
% computes the signed distance to a circle
% input nrow: number of rows
% ncol: number of columns
% (ic,jc): center of the circle
% r: radius of the circle
% output f: signed distance to the circle
[X,Y] = meshgrid(1:ncol, 1:nrow);
f = sqrt((X-jc*3/2).^2+(Y-ic/2).^2)-r;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?