how to create 3-D volume of selected DICOM images ?
古いコメントを表示
Hello , I have written a MATLAB code for the operation of converting selected DICOM images into its corresponded 3D volume . But I am not getting any response for longer time as it should complete its execution in limited time . I checked 'mri.mat' and its variable 'D' for reference . Please tell me where i should do correction in my code ? My code is -
clear all
close all
[filename, pathname] = uigetfile( ...
{'*.dcm','DCM Files (*.dcm,)';
'*.dcm', 'DICOM Images (*.dcm)'; ...
'*.*', 'All Files (*.*)'}, ...
'MultiSelect', 'on',...
'Pick file/(s)');
file_len = length(filename);
for i=1:file_len
I{i} = dicomread(filename{i});
Q{i}=imresize(I{i},0.4);
end
II = cell2mat(Q);
AA=uint8(II);
save('new1.mat','II','AA');
load new1.mat;
K = squeeze(AA);
L = padarray(K,[10 10 10],'both');
% Create an isosurface
Ds = smooth3(L);
surface = isosurface(Ds,5);
% Display the surface
hiso = patch('Vertices',surface.vertices,...
'Faces',surface.faces,...
'FaceColor',[.2,.8,.9],...
'EdgeColor','none');
grid on;
view(27,14)
axis tight
daspect([1,1,.35])
lightangle(40,30);
set(gcf,'Renderer','zbuffer'); lighting phong
isonormals(Ds,hiso)
set(hiso,'SpecularColorReflectance',0,'SpecularExponent',50)
Thank you :)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で DICOM Format についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!