Rename images using ImageIndex

1 次查看(过去 30 天)
Hello everyone! I would like to ask you how can I rename images (DICOM) in a folder using ImageIndex of each one from their info?

采纳的回答

Image Analyst
Image Analyst 2015-10-23
Use movefile() in a loop from the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F to rename a group of files in a folder.
  1 个评论
Ann G
Ann G 2015-10-24
编辑:Ann G 2015-10-24
Actually, I want to use the commands info=dicominfo(), dicomread and dicomwrite in a loop so that matlab will identify the imageindexof each image individually using idx=info.ImageIndex and then with dicomwrite change it's name by using the ImageIndex(number of slice). Here is what I already have: info=dicominfo('*.dcm');
idx=info.ImageIndex;
fname=sprintf('IQ_NEW_FDG_EANM15_%03d.dcm'),idx
X=dicomread('*.dcm');
dicomwrite(X,'IQ_NEW_FDG_EAMN15_%03d.dcm');

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by