Hi all. It's my first post. Excuse me for my bad English.<br><br>I'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> smoothing->SetInput( m_inputImage );<br> connectedThreshold->SetInput( smoothing->GetOutput() );<br><br> smoothing->SetNumberOfIterations( numberOfIterations );<br> smoothing->SetTimeStep( timeStep );
<br><br> connectedThreshold->SetLower( lowerThreshold );<br> connectedThreshold->SetUpper( upperThreshold );<br> connectedThreshold->SetReplaceValue( replaceValue );<br> connectedThreshold->SetSeed( index );
<br><br> try<br> {<br> connectedThreshold->Update();<br> }<br> catch( itk::ExceptionObject &exc )<br> {}<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>