<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I'm dealing with large data of medical images: 1296*128*201 of short type, so each copie of my data requires <STRONG>66MB</STRONG>! </DIV>
<DIV> </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> </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 reader's output. So just one copy!</DIV>
<DIV> </DIV>
<DIV>What can I other else release. I can't see where are the other copies....</DIV>
<DIV> </DIV>
<DIV>BTW, sometimes in litterature, I can see:</DIV>
<DIV><STRONG>- filter->ReleaseDataFlagOn();</STRONG></DIV>
<DIV><STRONG>- filter->GetOutput()->ReleaseDataFlagOn();</STRONG></DIV>
<DIV>What is best to use?</DIV>
<DIV> </DIV>
<DIV>Here is my code:</DIV>
<DIV> </DIV>
<DIV> //release data<BR><STRONG> absFilter->GetOutput() ->ReleaseDataFlagOn();</STRONG> //AbsImageFilterType<BR><STRONG> logFilter->GetOutput() ->ReleaseDataFlagOn();</STRONG> //LogImageFilterType<BR><STRONG> rescaleFilter->GetOutput()->ReleaseDataFlagOn();</STRONG> //RescaleFilterType<BR><STRONG> connector->GetImporter() ->ReleaseDataFlagOn();</STRONG> //filter ITK-->VTK<BR><STRONG> connector->GetExporter() ->ReleaseDataFlagOn(); <BR> shiftscale->GetOutput() ->ReleaseDataFlagOn();</STRONG> //vtkImageShiftScale</DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>//pipeline</DIV>
<DIV><STRONG> absFilter->SetInput( imageInitiale );</STRONG> //imageinitiale is the only copy that I need<BR><STRONG> rescaleFilter->SetInput( absFilter->GetOutput() );<BR> connector->SetInput( rescaleFilter->GetOutput() ); <BR> shiftscale->SetInput( connector->GetOutput() );</STRONG></DIV>
<DIV><STRONG> shiftscale->UpdateWholeExtent(); <BR> viewer.SetInput(shiftscale->GetOutput());</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG> 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>