From: David Sarrut Date: Mon, 24 Oct 2011 06:28:17 +0000 (+0200) Subject: Correct but when using LimitsWithTrachea (not taken into account) X-Git-Tag: v1.3.0~174^2~33 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9dd7511c02ac8bd86c7f953782080449212a6ebd;p=clitk.git Correct but when using LimitsWithTrachea (not taken into account) --- diff --git a/segmentation/clitkExtractLymphStation_Supports.txx b/segmentation/clitkExtractLymphStation_Supports.txx index 79abe6a..198482c 100644 --- a/segmentation/clitkExtractLymphStation_Supports.txx +++ b/segmentation/clitkExtractLymphStation_Supports.txx @@ -286,6 +286,8 @@ Support_LeftRight_S2R_S2L() MaskImagePointer S2L = m_ListOfSupports["S2L"]; S2R = LimitsWithTrachea(S2R, 0, 1, -10); S2L = LimitsWithTrachea(S2L, 0, 1, 10); + S2R = clitk::AutoCrop(S2R, GetBackgroundValue()); + S2L = clitk::AutoCrop(S2L, GetBackgroundValue()); m_ListOfSupports["S2R"] = S2R; m_ListOfSupports["S2L"] = S2L; this->GetAFDB()->template ReleaseImage("Trachea"); @@ -474,12 +476,12 @@ Support_Post_S1S2S4() MaskImagePointer S2L = m_ListOfSupports["S2L"]; MaskImagePointer S4R = m_ListOfSupports["S4R"]; MaskImagePointer S4L = m_ListOfSupports["S4L"]; - S1L = LimitsWithTrachea(S1L, 1, 0, -10, m_ApexOfTheChest); - S1R = LimitsWithTrachea(S1R, 1, 0, -10, m_ApexOfTheChest); - S2R = LimitsWithTrachea(S2R, 1, 0, -10, m_ApexOfTheChest); - S2L = LimitsWithTrachea(S2L, 1, 0, -10, m_ApexOfTheChest); - S4R = LimitsWithTrachea(S4R, 1, 0, -10, m_ApexOfTheChest); - S4L = LimitsWithTrachea(S4L, 1, 0, -10, m_ApexOfTheChest); + m_ListOfSupports["S1R"] = LimitsWithTrachea(S1L, 1, 0, -10, m_ApexOfTheChest); + m_ListOfSupports["S1L"] = LimitsWithTrachea(S1R, 1, 0, -10, m_ApexOfTheChest); + m_ListOfSupports["S2R"] = LimitsWithTrachea(S2R, 1, 0, -10, m_ApexOfTheChest); + m_ListOfSupports["S2L"] = LimitsWithTrachea(S2L, 1, 0, -10, m_ApexOfTheChest); + m_ListOfSupports["S4R"] = LimitsWithTrachea(S4R, 1, 0, -10, m_ApexOfTheChest); + m_ListOfSupports["S4L"] = LimitsWithTrachea(S4L, 1, 0, -10, m_ApexOfTheChest); } //--------------------------------------------------------------------