資源簡介
Brainweb上MINC文件讀取與處理的matlab函數,用于醫學圖像簡單處理。

代碼片段和文件信息
function?img?=?blurimage?(InputImage?FWHM)
%?blurimage?-?Perform?a?2D?Gaussian?blurring?on?an?image
%
%
%?????img?=?blurimage?(InputImage?FWHM)
%
%
%??This?function?performs?a?2D?Gaussian?blurring?of?an?input?image.??The
%??full-width?half?maximum?(FWHM)?of?the?blurring?kernel?is?specified?in
%??voxel?coordinates?(not?spatial?coordinates).
%
%??The?input?image?may?be?either?an?EMMA?standard?vector?image?or?else?a?2D
%??matrix?containing?an?image.
%
%?$Id:?blurimage.mv?1.2?1997/10/20?18:23:20?greg?Rel?$
%?$Name:?emma_v0_9_4?$
%??Copyright?1994?Mark?Wolforth?McConnell?Brain?Imaging?Centre?Montreal
%??Neurological?Institute?McGill?University.
%??Permission?to?use?copy?modify?and?distribute?this?software?and?its
%??documentation?for?any?purpose?and?without?fee?is?hereby?granted?provided
%??that?the?above?copyright?notice?appear?in?all?copies.??The?author?and
%??McGill?University?make?no?representations?about?the?suitability?of?this
%??software?for?any?purpose.??It?is?provided?“as?is“?without?express?or
%??implied?warranty.
if?(nargin~=2)
??help?blurimage
??error?(‘Insufficient?number?of?input?arguments.‘);
end
kern?=?kernel?(FWHM);
%
%?Reshape?the?image?appropriately
%
[xy]?=?size?(InputImage);
if?((x?>?1)?&?(y?>?1))
????xsize?=?x;
else
????xsize=?x^.5;
????if?(xsize?~=?floor?(xsize))
????????error(‘Image?must?be?square.‘);
????end
????if?(y?~=?1)
????????error(‘Image?must?be?a?vector?if?not?square.‘);
????end
????InputImage?=?reshape?(InputImage?xsize?xsize);
end
%
%?Now?perform?the?2D?convolution
%
img?=?conv2?(InputImage?kern?‘same‘);
%
%?If?the?result?is?square?convert?it?back?to?a?vector?image.
%
[xy]?=?size(img);
if?(x==y)
??img?=?reshape(imgx*y1);
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????5475??1997-10-20?13:23??worldtovoxel.m
?????文件??????356864??1999-08-16?17:36??miwriteimages.exe
?????文件??????272896??1999-08-12?23:44??miwritevar.exe
?????文件??????303163??2001-02-23?06:32??miinquire.dll
?????文件??????303166??2001-02-23?06:58??mireadimages.dll
?????文件??????294971??2001-02-23?06:37??mireadvar.dll
?????文件????????1787??1997-10-20?13:23??blurimage.m
?????文件?????????268??1997-10-20?13:23??calpix.m
?????文件????????2402??1997-10-20?13:23??check_sf.m
?????文件????????1303??1999-08-14?03:36??closeimage.m
?????文件????????3826??1997-10-21?15:37??Contents.m
?????文件?????????888??1997-10-20?13:23??deriv.m
?????文件?????????255??1997-10-20?13:23??emmahelp.m
?????文件????????2985??1997-10-20?13:23??gecolour.m
?????文件????????6332??1997-10-20?13:23??getblooddata.m
?????文件???????11890??1999-08-16?18:08??getimageinfo.m
?????文件????????6799??1999-08-16?18:07??getimages.m
?????文件????????2558??1997-10-20?13:23??getmask.m
?????文件?????????578??1997-10-20?13:23??getpixel.m
?????文件????????2231??1997-10-20?13:23??gettaggedhist.m
?????文件????????3720??1997-10-20?13:23??gettaggedregion.m
?????文件????????1947??1997-10-20?13:23??getvolumehist.m
?????文件????????6703??1997-10-20?13:23??getvoxeltoworld.m
?????文件????????1466??1997-10-20?13:23??hotme
?????文件?????????644??1997-10-20?13:23??howbig.m
?????文件????????1885??1997-10-20?13:23??kernel.m
?????文件????????5558??1997-10-20?13:23??loadtagfile.m
?????文件????????3496??1997-10-20?13:23??loadxfmfile.m
?????文件????????1089??1997-10-20?13:23??lookup.m
?????文件????????3354??1997-10-20?13:23??maketac.m
?????文件????????4450??1999-08-04?17:45??miinquire.m
............此處省略21個文件信息
- 上一篇:XFEM的程序
- 下一篇:基于MATLAB的同步發電機勵磁系統仿真.pdf
評論
共有 條評論