基于Matlab的简单图像网格划分我要分享

Simple image based on Matlab mesh

matlab 基于 简单 图像 网格

关注次数: 264

下载次数: 0

文件大小: 76.60 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:简单的图像网格划分软件,使用Matlab语言,能够自动对二维、三维图像进行网格划分,图像通过输入轮廓代码进行描绘。% Example: (Uniform Mesh on Unit Circle) fd=@(p) sqrt(sum(p.^2,2))-1; [p,t]=distmesh2d(fd,@huniform,0.2,[-1,-1;1,1],[]);% Example: (Uniform Mesh on Torus) fd=@(p) (sum(p.^2,2)+.8^2-.2^2).^2-4*.8^2*(p(:,1).^2+p(:,2).^2); [p,t]=distmeshsurface(fd,@huniform,0.1,[-1.1,-1.1,-.25;1.1,1.1,.25]);


English Description:

Simple image mesh generation software, use the Matlab language to automatically to mesh the two-dimension, three-dimension image, the image depicted by entering outline codes.% Example: (Uniform Mesh on Unit Circle) fd=@(p) sqrt(sum(p.^2,2))-1; [p,t]=distmesh2d(fd,@huniform,0.2,[-1,-1;1,1],[]);% Example: (Uniform Mesh on Torus) fd=@(p) (sum(p.^2,2)+.8^2-.2^2).^2-4*.8^2*(p(:,1).^2+p(:,2).^2); [p,t]=distmeshsurface(fd,@huniform,0.1,[-1.1,-1.1,-.25;1.1,1.1,.25]);


代码预览