⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadvolumefromslicesdir.asv

📁 matlab aamtool box
💻 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 + -