]> Creatis software - clitk.git/blobdiff - segmentation/clitkMotionMaskGenericFilter.txx
Add post limits with VertebralBody and ant limits with Sternum.
[clitk.git] / segmentation / clitkMotionMaskGenericFilter.txx
index 414a2f69042a5494b2355472c5785f3d31604efd..91e1bbdc038ac40d470442df64874ad487b82a5c 100644 (file)
@@ -377,6 +377,8 @@ MotionMaskGenericFilter::GetLungsImage(typename itk::Image<PixelType, Dimension>
     connectFilter->SetBackgroundValue(0);
     connectFilter->SetFullyConnected(true);
     if (m_Verbose) std::cout<<"Labeling the connected components..."<<std::endl;
+    connectFilter->Update();
+    if (m_Verbose) std::cout<<"found "<< connectFilter->GetObjectCount() << std::endl;
 
     //---------------------------------
     // Sort the labels according to size