<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm dealing with large data of medical images:&nbsp;1296*128*201 of short type, so each copie of my data requires <STRONG>66MB</STRONG>! </DIV>
<DIV>&nbsp;</DIV>
<DIV>That's why it is important to <STRONG>release my data and limit the number of my copies</STRONG>. To do so, I try to use <STRONG>ReleaseDataFlagOn</STRONG>() on each filter of my pipeline.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I checked the size of my process while execution of my program. At the end, my program occupes <STRONG>238MB</STRONG>, so I can deduce that I have at least <STRONG>3 copies of my data</STRONG>. However, all that I need to keep in memory is my&nbsp;reader's output. So just one copy!</DIV>
<DIV>&nbsp;</DIV>
<DIV>What can I other else release. I can't see where are the other copies....</DIV>
<DIV>&nbsp;</DIV>
<DIV>BTW, sometimes in litterature, I can see:</DIV>
<DIV><STRONG>- filter-&gt;ReleaseDataFlagOn();</STRONG></DIV>
<DIV><STRONG>- filter-&gt;GetOutput()-&gt;ReleaseDataFlagOn();</STRONG></DIV>
<DIV>What is best to use?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is my code:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;//release data<BR><STRONG>&nbsp;absFilter-&gt;GetOutput()&nbsp;&nbsp;&nbsp; -&gt;ReleaseDataFlagOn();</STRONG> //AbsImageFilterType<BR><STRONG>&nbsp;logFilter-&gt;GetOutput()&nbsp;&nbsp;&nbsp; -&gt;ReleaseDataFlagOn();</STRONG> //LogImageFilterType<BR><STRONG>&nbsp;rescaleFilter-&gt;GetOutput()-&gt;ReleaseDataFlagOn();</STRONG> //RescaleFilterType<BR><STRONG>&nbsp;connector-&gt;GetImporter()&nbsp; -&gt;ReleaseDataFlagOn();</STRONG> //filter ITK--&gt;VTK<BR><STRONG>&nbsp;connector-&gt;GetExporter()&nbsp; -&gt;ReleaseDataFlagOn(); <BR>&nbsp;shiftscale-&gt;GetOutput()&nbsp;&nbsp; -&gt;ReleaseDataFlagOn();</STRONG>&nbsp;//vtkImageShiftScale</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV>//pipeline</DIV>
<DIV><STRONG>&nbsp;absFilter-&gt;SetInput( imageInitiale );</STRONG> //imageinitiale is the only copy that I need<BR><STRONG>&nbsp;rescaleFilter-&gt;SetInput( absFilter-&gt;GetOutput() );<BR>&nbsp;connector-&gt;SetInput( rescaleFilter-&gt;GetOutput() );&nbsp;&nbsp;<BR>&nbsp;shiftscale-&gt;SetInput( connector-&gt;GetOutput() );</STRONG></DIV>
<DIV><STRONG>&nbsp;shiftscale-&gt;UpdateWholeExtent();&nbsp;<BR>&nbsp;viewer.SetInput(shiftscale-&gt;GetOutput());</STRONG></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><STRONG>&nbsp;viewer.Render();</STRONG></DIV>
<P>Thanks for helping,</P>
<P>Isabelle</P>
<DIV><STRONG><BR></STRONG></DIV><p>
                <hr size=1> 
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br> 
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>