Slicing the volumes in different planes and save the slices in Tiff
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
I have Volumetric Dicom file which i read using dicomreadVolume.
I want to slice the volume in XY,YZ and XZ plane and save all the slices in .tif file.
For example
for i=1:length(z)
baseFileName = sprintf('Image #%d.tif', i);
fullFileName = fullfile('outfolder', baseFileName);
%imwrite(BW(i,:,:), fullFileName);
saveas(BW(:,:,i), fullFileName);
% imwrite(BW(i,:,:),outfolder'+int2str(i)+'.tif')
end
Error:Invalid handle.
OR
X=V(:,:,170);
X=squeeze(X);
saveas(gcf,[X,'.tif']);
Error using horzcat
Dimensions of arrays being concatenated are not consistent.
I tried using saveas function as well as imwrite
But got error.
Please help
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!