Attempt to reference field of non-structure array.
古いコメントを表示
I am trying to creat a stack of 2d dicom images and represent them in a 3d rotation axis.
N=5;
img_dir ='D:\Stelios PhD files'
strfile = 'Z01';
img = dicomread(fullfile(img_dir, strfile));
siz_img = size(img);
% create result matrix:
ct3d = NaN([siz_img N]);
ct3d(:,:,1) = img;
% load all the remaining images and put them in the matrix
for ii=2:N
strfile = sprintf('Z01',ii);
ct3d(:,:,ii)= dicomread(fullfile(img_dir, strfile));
end
figure
imshow(ct3d(:,:,ii));
dVolume = squeeze(ct3d.D);
it comes up with an error at the dVolume line
回答 (2 件)
Stephen23
2017 年 12 月 4 日
0 投票
Stelios Fanourakis
2017 年 12 月 4 日
0 投票
1 件のコメント
Stephen23
2017 年 12 月 4 日
@Stelios Fanourakis: then you should actually ask how to do that in your question.
カテゴリ
ヘルプ センター および File Exchange で DICOM Format についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!