Delete a line from DICOM?
Mostrar comentarios más antiguos
I need to delete a few lines from some DICOM files. I can open up the file after I use dicominfo and find the line that I want gone and simply hit delete (or right click delete) and use dicomwrite to save the file. This works fine, but I would like to automate this process. Is there a way to code in to delete a line from a dicom file? For example:
aa = dicominfo('RS.dcm');
%I just want to delete:
aa.RTROIObservationsSequence.Item_3.Private_3773_3005
Sorry if this seems trival, I am relativly inexperienced with Matlab and can't seem to find any information relating to this.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 4 de Abr. de 2014
0 votos
DICOM files do not have "lines": they are often binary files that can contain blobs of binary data.
You should be able to use dicomread(), alter the values, and dicomwrite()
1 comentario
Tim
el 4 de Abr. de 2014
Categorías
Más información sobre Read and Write Image Data from Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!