资源简介
用matlab开发的基于李纯明的2011年的水平集算法和它的实现,实验结果完全正确
代码片段和文件信息
% This code demonstrates the level set evolution (LSE) and bias field estimation
% proposed in the following paper:
% C. Li R. Huang Z. Ding C. Gatenby D. N. metaxas and J. C. Gore
% “A Level Set Method for Image Segmentation in the Presence of Intensity
% Inhomogeneities with Application to MRI“ IEEE Trans. Image Processing 2011
%
% Note:
% This code implements the two-phase formulation of the model in the above paper.
% The two-phase formulation uses the signs of a level set function to represent
% two disjoint regions and therefore can be used to segment an image into two regions
% which are represented by (u>0) and (u<0) where u is the level set function.
%
% All rights researved by Chunming Li who formulated the model designed and
% implemented the algorithm in the above paper.
%
% E-mail: lchunming@gmail.com
% URL: http://www.engr.uconn.edu/~cmli/
% Copyright (c) by Chunming Li
% Author: Chunming Li
close all;
clear all;
%Img=imread(‘heart_ct.bmp‘);
Img=imread(‘myBrain_axial.bmp‘);
Img=double(Img(::1));
A=255;
Img=A*normalize01(Img); % rescale the image intensities
nu=0.001*A^2; % coefficient of arc length term
sigma = 4; % scale parameter that specifies the size of the neighborhood
iter_outer=50;
iter_inner=10; % inner iteration for level set evolution
timestep=.1;
mu=1; % coefficient for distance regularization term (regularize the level set function)
c0=1;
figure(1);
imagesc(Img[0 255]); colormap(gray); axis off; axis equal
% initialize level set function
initialLSF = c0*ones(size(Img));
initialLSF(30:9050:90) = -c0;
u=initialLSF;
hold on;
contour(u[0 0]‘r‘);
title(‘Initial contour‘);
figure(2);
imagesc(Img[0 255]); colormap(gray); axis off; axis equal
hold on;
contour(u[0 0]‘r‘);
title(‘Initial contour‘);
epsilon=1;
b=ones(size(Img)); %%% initialize bias field
K=fspecial(‘gaussian‘round(2*sigma)*2+1sigma); % Gaussian kernel
KI=conv2(ImgK‘same‘);
KONE=conv2(ones(size(Img))K‘same‘);
[rowcol]=size(Img);
N=row*col;
for n=1:iter_outer
[u b C]= lse_bfe(uImg b KKONE nutimestepmuepsilon iter_inner);
if mod(n2)==0
pause(0.001);
imagesc(Img[0 255]); colormap(gray); axis off; axis equal;
hold on;
contour(u[0 0]‘r‘);
iterNum=[num2str(n) ‘ iterations‘];
title(iterNum);
hold off;
end
end
Mask =(Img>10);
Img_corrected=normalize01(Mask.*Img./(b+(b==0)))*255;
figure(3); imagesc(b); colormap(gray); axis off; axis equal;
title(‘Bias field‘);
figure(4);
imagesc(Img_corrected); colormap(gray); axis off; axis equal;
title(‘Bias corrected image‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-11-06 08:23 11-levelset_segmentation_biasCorrection_v1\
文件 2751 2013-08-27 20:01 11-levelset_segmentation_biasCorrection_v1\Demo.m
文件 4087 2013-08-27 19:53 11-levelset_segmentation_biasCorrection_v1\Demo_MultiPhase.asv
文件 4239 2013-11-02 09:19 11-levelset_segmentation_biasCorrection_v1\Demo_MultiPhase.m
文件 18177 2013-07-25 09:12 11-levelset_segmentation_biasCorrection_v1\head000001.png
文件 20534 2009-04-16 18:56 11-levelset_segmentation_biasCorrection_v1\heart_ct.bmp
文件 73 2012-11-29 23:06 11-levelset_segmentation_biasCorrection_v1\Heaviside.m
文件 263222 2013-04-23 07:59 11-levelset_segmentation_biasCorrection_v1\I870_0001.BMP
文件 2103949 2013-07-25 21:17 11-levelset_segmentation_biasCorrection_v1\levelset_segmentation_biasCorrection.pdf
文件 3246 2012-11-29 22:56 11-levelset_segmentation_biasCorrection_v1\lse_bfe.m
文件 3621 2013-08-27 17:26 11-levelset_segmentation_biasCorrection_v1\lse_bfe_3Phase.asv
文件 3621 2013-08-27 17:29 11-levelset_segmentation_biasCorrection_v1\lse_bfe_3Phase.m
文件 36682 2007-10-31 16:21 11-levelset_segmentation_biasCorrection_v1\myBrain_axial.bmp
文件 164 2012-11-06 10:18 11-levelset_segmentation_biasCorrection_v1\normalize01.m
文件 25102 2013-10-09 13:14 11-levelset_segmentation_biasCorrection_v1\XXI870_0001.bmp
相关资源
- 水平集 matlab实现 内含原理论文!效果
- 水平集level set、李纯明博士DRLSE改进方
- 李纯明老师的level set代码和相关论文
- 基于水平集的分割方法MATLAB代码
- 水平集方法的matlab源代码
- 水平集matlab实现
- 椭圆约束主动轮廓视盘分割
- MATLAB 代码 基于C-V模型的水平集图像分
- 水平集的图像分割
- 李纯明老师 水平集CV MATLAB代码
- cv水平集及改进算法MATLAB程序
- 采用半隐式方案实现变分水平集图像
- 关于水平集方法的拓扑优化代码-TOP
- matlab实现水平集方法
- 基于水平集CV模型的图像分割Matlab代码
- 变分法水平集matlab代码
- 水平集图像分割的Matlab程序代码
- 李纯明的水平集程序matlab
- nonlocal-level-set [SIAM]Nonlocal Active Conto
- MRI_seg
- PDE_in_image_processing (1)MATLAB程序:其
- a-level-set-inariable-distance 李春明提出的
- FCMLSM 基于FCM和水平集的图像分割
- FCMLSM 改进的基于整合空间的模糊聚类
- turbopixels_code.tar 目前效果最好的超像
- 关于水平集方的通用程序-Levelset_mai
- 图像分割中常用的水平集方法的matl
- 中国科学技术大学(中科大)数字图
评论
共有 条评论