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

📄 dcm_pixeldata.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
function idata = dcm_PixelData(hfile)
% DCM::PixelData  - return image data as 1xN data array
%
% FORMAT:       pixels = dcm.PixelData;
%
% Output fields:
%
%       pixels      pixel data (1xN array!)

% Version:  v0.7b
% Build:    7083008
% Date:     Aug-30 2007, 8:58 AM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% only valid for single file
if nargin < 1 || ...
    numel(hfile) ~= 1 || ...
   ~isBVQXfile(hfile, 'dcm')
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid call to %s.', ...
        mfilename ...
    );
end

% check key
bc = bvqxfile_getcont(hfile.L);
if ~isfield(bc.DataKeyLookup, 'k_7FE0_0010')
    error( ...
        'BVQXfile:BadObject', ...
        'Object does not contain image data.' ...
    );
end
idata = bc.Data(bc.DataKeyLookup.k_7FE0_0010).Value;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -