📄 read_dicom.m
字号:
function X = read_dicom(filename)
% READ_DICOM read in a dicom image and show,support all DICOM image
% format.from grayscale to truecolor,supporting alpha channel
% read_dicom(filename) read in dicom image and show,but the returned image
% data is discarded.
% X = read_dicom(filename) read in dicom image and show out,and the image
% data is reserved in X,X can be uint8,int8,uint16,int16,double
% Note: filename is required whenever.
% this is an *AS* code,No warranty is garanteed!pleaz report any bug to
% ybc2084@163.com or submit on my blog:www.dormforce.net/blog/rockins.
info = dicominfo(filename);
X = dicomread(info);
imshow(X, [0, 2^info.BitDepth - 1]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -