3维图像分割显示 标签: 图像分割level set3dmatlab 2015-04-16 17:59 228人阅读 评论(0)

Code:

本代码完成的功能是:

对3维数据进行thresholding,之后以此作为水平集的初始化轮廓,最后在3D中显示Lsf的0水平集

clear all;
close all;
load lsf_half.mat;
im = lsf;
BW = (lsf>100);
lsf = 4.*(0.5-BW);
% using mr li
[m,n,p] = size(lsf);
[xx,yy,zz] = meshgrid(1:n,1:m,1:p);
v = lsf;
a = 0;
aspect_ratio = [1,1,1];


Published with MATLAB? R2014a

原文地址:https://www.cnblogs.com/helay/p/7133960.html