X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=segmentation%2FclitkExtractLymphStation_Supports.txx;h=79abe6a6652b60f20cf5aa2eaf293a12855345fa;hb=b2a7c12437798214cca01b68d61f5b16eb1036a5;hp=2cde97dd98b7465ae1addea1e6bcfc11965a4281;hpb=f2db63f3bfa350d3267598e5630af09c34edd79e;p=clitk.git diff --git a/segmentation/clitkExtractLymphStation_Supports.txx b/segmentation/clitkExtractLymphStation_Supports.txx index 2cde97d..79abe6a 100644 --- a/segmentation/clitkExtractLymphStation_Supports.txx +++ b/segmentation/clitkExtractLymphStation_Supports.txx @@ -123,6 +123,8 @@ Support_SupInf_S1RL() MaskImagePointType p; p[0] = p[1] = p[2] = 0.0; // to avoid warning clitk::FindExtremaPointInAGivenDirection(Sternum, GetBackgroundValue(), 2, false, p); + // DD(p); + p[2] += Sternum->GetSpacing()[2]; // add one slice: start just superiorly MaskImagePointer S1RL = clitk::CropImageRemoveLowerThan(m_Working_Support, 2, p[2], true, GetBackgroundValue());