X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLymphStation_3A.txx;h=a55071c19e5874d3f9804e03befa2a1509bff152;hb=fa358ee6738c92950cd9e6c45f55dda6e9b4576e;hp=044691304971179c1507e3efac5ea2becd75c79e;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/segmentation/clitkExtractLymphStation_3A.txx b/segmentation/clitkExtractLymphStation_3A.txx index 0446913..a55071c 100644 --- a/segmentation/clitkExtractLymphStation_3A.txx +++ b/segmentation/clitkExtractLymphStation_3A.txx @@ -1,23 +1,3 @@ -/*========================================================================= - Program: vv http://www.creatis.insa-lyon.fr/rio/vv - - Authors belong to: - - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://www.centreleonberard.fr - - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the copyright notices for more information. - - It is distributed under dual licence - - - BSD See included LICENSE.txt file - - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -===========================================================================*/ - -#include -#include //-------------------------------------------------------------------- template @@ -25,6 +5,8 @@ void clitk::ExtractLymphStationsFilter:: ExtractStation_3A_SetDefaultValues() { + SetFuzzyThreshold("3A", "Sternum", 0.5); + SetFuzzyThreshold("3A", "SubclavianArtery", 0.5); } //-------------------------------------------------------------------- @@ -73,7 +55,27 @@ ExtractStation_3A_Ant_Limits() MaskImagePointer Sternum = GetAFDB()->template GetImage("Sternum"); m_Working_Support = clitk::SliceBySliceRelativePosition(m_Working_Support, Sternum, 2, - 0.5, "PostTo", + GetFuzzyThreshold("3A", "Sternum"), "PostTo", + false, 3, true, false); + StopCurrentStep(m_Working_Support); + m_ListOfStations["3A"] = m_Working_Support; +} +//-------------------------------------------------------------------- + + +//-------------------------------------------------------------------- +template +void +clitk::ExtractLymphStationsFilter:: +ExtractStation_3A_Post_Limits() +{ + StartNewStep("[Station 3A] Post limits with SubclavianArtery"); + + // Get Sternum, keep posterior part. + MaskImagePointer SubclavianArtery = GetAFDB()->template GetImage("SubclavianArtery"); + m_Working_Support = + clitk::SliceBySliceRelativePosition(m_Working_Support, SubclavianArtery, 2, + GetFuzzyThreshold("3A", "SubclavianArtery"), "AntTo", false, 3, true, false); StopCurrentStep(m_Working_Support); m_ListOfStations["3A"] = m_Working_Support;