I saved the metaDataDictionaryArray and passed its pointer to the series writer via the SetMetaDataDictionaryArray() function after I did my processing. However, I get an error in the &quot;xtree&quot; file in the following lines:<div>
<br></div><div><div>_Myt&amp; operator=(const _Myt&amp; _Right)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>{<span class="Apple-tab-span" style="white-space:pre">        </span>// replace contents from _Right</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>if (this != &amp;_Right)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>{<span class="Apple-tab-span" style="white-space:pre">        </span>// worth doing</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>erase(begin(), end());</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>this-&gt;comp = _Right.comp;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><b>_Copy(_Right);</b></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>return (*this);</div><div><br></div><div>What is happening? Why can&#39;t I output this DICOM series?</div>
<div><br></div><div><br></div><div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 7:58 AM, Neil Panjwani <span dir="ltr">&lt;<a href="mailto:paniwani@gmail.com">paniwani@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m having problems reading a series of 2D DICOM images as a 3D volume, performing my algorithm on the 3D input, and then writing out the DICOM 2D series again. If I use a different SeriesFileNames, the files are sometimes read in backwards. On other occassions, they&#39;re read in correctly, can be outputted at any time as a volume, but cannot be written as a series. <div>

<br></div><div>My guess is that I am violating some DICOM dictionary rules. Can anyone point me in the right direction to generate a new DICOM series? And how to avoid the problem of reading my data in backwards?<div><br>

</div><div>Thanks,</div><div>Neil</div></div>
</blockquote></div><br></div></div></div>