Hi itk-list, hi Bill,<br><br><br>I've learnt that when you create a new DICOM file with <span style="font-family: courier new,monospace;">writer->SetMetaDataDictionnary(***dictionnary_of_other(s)_Dicom_File(s)***)</span>, the dicom header of the new file was adapted in the image of the writer... For example if the original DICOM image (from the reader) is 100x100 and the image you put in the new DICOM file (writer) is 50x50 pixels, the tags "Rows" and "Columns" will be adjusted to 50 and 50. (It's not a simple copy/paste of the header)<br>
<br>Fine ! :-)<br><br>But I'd like to ask you a question about a particular case.<br><br>Let's take the example of DicomImageReadChangeHeaderWriter.cxx (dicom serie).<br>But suppose that I modify the image during the process, and before creating the new Dicom File : I crop the image on the Z-axis... The Dicom serie has 50 slices, but I do a crop on the Z-axis and I keep only the 25 first slices.<br>
<br>What about the dicom header of the new DICOM file ? (after <span style="font-family: courier new,monospace;">writer->SetMetaDataDictionnary(***dictionnary_of_DICOM_Serie 1->50***)</span>)<br><br>Will it be right ?<br>
<br>Do I have to manually change the tags "Number of slices" ?<br>Do I have to give, as input dictionnary, the MetaDataDictionnary of the DICOM Series 1->25 (instead of 1->50) ?<br><br>Do you understand the question ?<br>
<br><br>Mathieu Malaterre told me that Bill answered a similar question a few days/weeks ago but I didn't find the post...<br><br><br>Thank you in advance,<br><br><br>Regards,<br><br><br>Stéphane<br><br><br><br><br>PS: in fact, in order to modify the "SeriesDescription" tag, I use <span style="font-family: courier new,monospace;">Get/SetMetaDataDictionnary<u><b>Array</b></u><span style="font-family: arial,helvetica,sans-serif;"> but I suppose it doesn't matter...</span><br>
</span>