]> Creatis software - clitk.git/commitdiff
Add one slice for the S1RL support
authorDavid Sarrut <david.sarrut@gmail.com>
Wed, 19 Oct 2011 11:01:14 +0000 (13:01 +0200)
committerDavid Sarrut <david.sarrut@gmail.com>
Wed, 19 Oct 2011 11:01:14 +0000 (13:01 +0200)
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());