我有一个大小为256*256*3的dicom文件.但是,当我在matlab中使用dicomread命令读取此文件时,dicom文件的大小为256*256?如何解决这个问题?
`close all;
clear all;
clear all;
%here we are reading the image and adding noise into that image.
sigma = 25;% standard deviation
P ='C:\Users\kitty\Dropbox\denoise_ksvd\ADNI';
D=dir(fullfile(P,'*.dcm'));
C=cell(size(D));
for k=1:numel(D)
C=dicomread(fullfile(P,D(k).name));
IMin0(:,k)=C(:);
end `
Run Code Online (Sandbox Code Playgroud) 我想在区间[-50,50]中生成100个正态分布的随机数.但是在下面的代码中,生成的随机数范围是[-50,50].
n <- rnorm(100, -50,50)
plot(n)
Run Code Online (Sandbox Code Playgroud)