Hi all. It&#39;s my first post. Excuse me for my bad English.<br><br>I&#39;m trying to apply segmentation to a 3D Image (of course a set of 2D images). In this code smoothing is odf type CurvatureFlowImageFilter and connectedThreshold of type ConnectedThresholdImageFilter.
<br><br>&nbsp;&nbsp;&nbsp; smoothing-&gt;SetInput( m_inputImage );<br>&nbsp;&nbsp;&nbsp; connectedThreshold-&gt;SetInput( smoothing-&gt;GetOutput() );<br><br>&nbsp;&nbsp;&nbsp; smoothing-&gt;SetNumberOfIterations( numberOfIterations );<br>&nbsp;&nbsp; &nbsp;smoothing-&gt;SetTimeStep( timeStep );
<br><br>&nbsp;&nbsp;&nbsp; connectedThreshold-&gt;SetLower( lowerThreshold );<br>&nbsp;&nbsp; &nbsp;connectedThreshold-&gt;SetUpper( upperThreshold );<br>&nbsp;&nbsp;&nbsp; connectedThreshold-&gt;SetReplaceValue( replaceValue );<br>&nbsp;&nbsp;&nbsp; connectedThreshold-&gt;SetSeed( index );
<br><br>&nbsp;&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; connectedThreshold-&gt;Update();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; catch( itk::ExceptionObject &amp;exc )<br>&nbsp;&nbsp;&nbsp; {}<br><br>The problem is that when m_inputImage is 512x512x20 (20 images with a size of 512x512) the filtering works without any problem but when I try to use it with a set of 70 images (for example) the output of connectedThreshold has a NULL buffer  (while output of smoothing is ok) without any exception at updating. The system memory is enough to manage this amount of data. I tried to apply just one of the filters and it works ok.
<br><br>Can you help me? Thanks.<br>