How dicomCollection sorts dicom filenames?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
drummer
el 22 de Ag. de 2020
Comentada: drummer
el 1 de Oct. de 2020
Hi,
I'm having issues when using dicomCollection to read multi-slice dicom volumes.
When loading regular dicom images (the ones I haven't processed), dicomCollection sorts the image slices correctly.
But when I try to load dicom images I created (sub-sampled MR images), it sorts like crazy, with no apparently intuitive ordering.
collection = dicomCollection(MyMRfolder, 'IncludeSubfolders', true);
for idx = 1 : numel(collection.Row)
dicomFilename = collection.Filenames{idx};
end
FYI: there are numbers in my dicom filenames suggesting its order, as image1.dcm, image2.dcm and so on. It happens to the 'untouched' dicom images as well.
How would it sort, if dicom headers such as InstanceNumber were correctly written using dicomwrite?
Thanks
0 comentarios
Respuesta aceptada
drummer
el 24 de Ag. de 2020
2 comentarios
Julianna Mather
el 28 de Sept. de 2020
Just be aware, files aren't always stored with filenames that sort correctly. (It's actually pretty common for them not to be.) The only way to get it right is to inspect the position metadata inside the file.
Consider using dicomreadVolume, which takes care of this for you.
Más respuestas (0)
Ver también
Categorías
Más información sobre DICOM Format en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!