From: David Sarrut Date: Wed, 19 Oct 2011 11:01:14 +0000 (+0200) Subject: Add one slice for the S1RL support X-Git-Tag: v1.3.0~174^2~54 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b2a7c12437798214cca01b68d61f5b16eb1036a5;p=clitk.git Add one slice for the S1RL support --- 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());