?? loadvolumefromslicesdir.asv
字號:
function [volume] = loadVolumeFromSlicesDir(fullVolumePath)
% function [volume] = loadVolumeFromSlicesDir(fullVolumePath)
%
% Description:
% Function to load slices given the directory where the slices reside. The
% matlab supported image formats are tried in turn to load a volume
% comprising image slices in the given directory. As soon as one or more
% image files of a given type are encounterd, all the images with the given
% extension are assumed to comprise the volume and image search stops.
%
% Author: Johann Strasser
% Date: 070326
volume = [];
imf = imformats;
formatCounter = 1;
% Scan through the matlab supported image formats and check if directory
% contains image
while isempty(volume) && formatCounter <= length(imf)
extensionCounter = 1;
while isempty(volume) && extensionCounter <= length(imf(formatCounter).ext)
volume = loadVolumeFromSlicesDir(fullVolumePath, ...
char(imf(formatCounter).ext{extensionCounter}));
extensionCounter = extensionCounter + 1;
end
formatCounter = formatCounter + 1;
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -