【医学图像分割】基于matlab磁共振成像 (MRI) 数值模拟平台【含Matlab源码 826期】
【摘要】
一、图像分割简介
理论知识参考:【基础教程】基于matlab图像处理图像分割【含Matlab源码 191期】
二、部分源代码
function MRiLab
warning off; % dis...
一、图像分割简介
理论知识参考:【基础教程】基于matlab图像处理图像分割【含Matlab源码 191期】
二、部分源代码
function MRiLab
warning off; % disable warning
[pathstr,name,ext]=fileparts(mfilename('fullpath'));
% Check MEX existence
fpath = [pathstr filesep 'Lib' filesep 'bin'];
if exist([fpath filesep 'DoScanAtCPU.mexw64'], 'file')
% MEX exist, do nothing
else
try
fileUrl = ['http://mrilab.sourceforge.net/bin/MRiLab1.2Bin.zip'];
zipFileName = fullfile(fpath,'MRiLab1.2Bin.zip');
disp('Downloading core MEX files from MRiLab website http://sourceforge.net/projects/mrilab/');
urlwrite(fileUrl,zipFileName);
disp('Unzip files ...');
unzip(zipFileName,fpath);
rehash;
catch me
error_msg{1,1}='Some core MEX files for running MRiLab can not be configured.';
error_msg{2,1}='Please download MRiLab full version with all MEX configured from';
error_msg{3,1}='http://sourceforge.net/projects/mrilab/';
errordlg(error_msg);
return;
end
end
% Open MRiLab main panel
addpath(genpath(pathstr));
SimuPanel(pathstr);
clear pathstr name ext
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MRiLab auto generated file: DO NOT EDIT! %
% Generated by MRiLab "DoWriteXML2m" Generator %
% MRiLab Version 1.2 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [B1x, B1y, B1z, Pos]=Coil_9ChSurfChest
%====================================
p.Azimuth=pi/2;
p.CoilID=1;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=-0.1;
p.PosY=-0.1;
p.PosZ=-0.1;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=2;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=-0.1;
p.PosY=-0.1;
p.PosZ=0;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=3;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=-0.1;
p.PosY=-0.1;
p.PosZ=0.1;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=4;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=0;
p.PosY=-0.1;
p.PosZ=-0.1;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=5;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=0;
p.PosY=-0.1;
p.PosZ=0;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=6;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=0;
p.PosY=-0.1;
p.PosZ=0.1;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=7;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=0.1;
p.PosY=-0.1;
p.PosZ=-0.1;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=8;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=0.1;
p.PosY=-0.1;
p.PosZ=0;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
p.Azimuth=pi/2;
p.CoilID=9;
p.CurrentDir=1;
p.Elevation=0;
p.PosX=0.1;
p.PosY=-0.1;
p.PosZ=0.1;
p.Radius=0.04;
p.Scale=0.1;
p.Segment=20;
[B1xt, B1yt, B1zt, Post]=CoilCircle(p);
B1x(:,:,:,p.CoilID)=B1xt;
B1y(:,:,:,p.CoilID)=B1yt;
B1z(:,:,:,p.CoilID)=B1zt;
Pos(p.CoilID,:)=Post;
p=[];
%--------------------
end
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
三、运行结果
四、matlab版本及参考文献
1 matlab版本
2014a
2 参考文献
[1] 蔡利梅.MATLAB图像处理——理论、算法与实例分析[M].清华大学出版社,2020.
[2]杨丹,赵海滨,龙哲.MATLAB图像处理实例详解[M].清华大学出版社,2013.
[3]周品.MATLAB图像处理与图形用户界面设计[M].清华大学出版社,2013.
[4]刘成龙.精通MATLAB图像处理[M].清华大学出版社,2015.
[5]赵勇,方宗德,庞辉,王侃伟.基于量子粒子群优化算法的最小交叉熵多阈值图像分割[J].计算机应用研究. 2008,(04)
文章来源: qq912100926.blog.csdn.net,作者:海神之光,版权归原作者所有,如需转载,请联系作者。
原文链接:qq912100926.blog.csdn.net/article/details/120598131
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)