<div dir="ltr">Unfortunately that is as much as I know. I found it a few weeks ago here:<div><a href="http://www.vtk.org/Wiki/VTK/FAQ#Using_ReleaseDataFlag">http://www.vtk.org/Wiki/VTK/FAQ#Using_ReleaseDataFlag</a></div><div>
<br></div><div style>You should not need to clear the input with NULL as far as I know, but keep in mind that the filter is set to delete its output, not its input. So you would need to set the flag on the filter that is creating the brain3D in order to have the brain3D output data deleted.</div>
<div style><br></div><div style>If you are declaring the same pipeline each time through the loop, you may be able to set up the pipeline initially and have the loop only feed it different input data each time, modify parameters on filters (remember to call Update()) and do something with the output. However, depending on what you are doing with the resulting data you may need to copy the output if using this approach.</div>
<div style><br></div><div style>Shawn</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 6:05 PM, johnsonjonaris <span dir="ltr"><<a href="mailto:jgadel2@uic.edu" target="_blank">jgadel2@uic.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">HI<br>
Thanks Shawn for your reply, that was quick.<br>
I tried to do as you suggested with no luck :(<br>
for example, I did the following for the vtkImageThreshold filter:<br>
<br>
threshold = vtkSmartPointer<vtkImageThreshold>::New();<br>
threshold->ThresholdBetween(lblValues(i),lblValues(i)); // lblValues<br>
is a vector of the labels<br>
threshold->SetOutValue(0);<br>
threshold->SetInput(brain3D);<br>
threshold->ReleaseDataFlagOn();<br>
<br>
Note that every time in the loop I declare the pipeline elements with New()<br>
Also, at the end of the loop I need to clear the input with NULL in order to<br>
clean the memory.<br>
Any suggestions ?<br>
Regards<br>
<div class="im"><br>
<br>
<br>
<br>
-----<br>
Johnson Jonaris<br>
PhD Candidate<br>
Electrical & Computer Eng<br>
University of IL at Chicago<br>
--<br>
</div>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtk-pipeline-problem-tp5721639p5721642.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtk-pipeline-problem-tp5721639p5721642.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>