Hi itk-list, hi Bill,<br><br><br>I&#39;ve learnt that when you create a new DICOM file with <span style="font-family: courier new,monospace;">writer-&gt;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 &quot;Rows&quot; and &quot;Columns&quot; will be adjusted to 50 and 50. (It&#39;s not a simple copy/paste of the header)<br>
<br>Fine ! :-)<br><br>But I&#39;d like to ask you a question about a particular case.<br><br>Let&#39;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-&gt;SetMetaDataDictionnary(***dictionnary_of_DICOM_Serie 1-&gt;50***)</span>)<br><br>Will it be right ?<br>
<br>Do I have to manually change the tags &quot;Number of slices&quot; ?<br>Do I have to give, as input dictionnary, the MetaDataDictionnary of the DICOM Series 1-&gt;25 (instead of 1-&gt;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&#39;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 &quot;SeriesDescription&quot; 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&#39;t matter...</span><br>
</span>