]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractLymphStation_Supports.txx
Add one slice for the S1RL support
[clitk.git] / segmentation / clitkExtractLymphStation_Supports.txx
index 2cde97dd98b7465ae1addea1e6bcfc11965a4281..79abe6a6652b60f20cf5aa2eaf293a12855345fa 100644 (file)
@@ -123,6 +123,8 @@ Support_SupInf_S1RL()
   MaskImagePointType p;
   p[0] = p[1] = p[2] =  0.0; // to avoid warning
   clitk::FindExtremaPointInAGivenDirection<MaskImageType>(Sternum, GetBackgroundValue(), 2, false, p);
+  //  DD(p);
+  p[2] += Sternum->GetSpacing()[2]; // add one slice:  start just superiorly
   MaskImagePointer S1RL = 
     clitk::CropImageRemoveLowerThan<MaskImageType>(m_Working_Support, 2, 
                                                    p[2], true, GetBackgroundValue());