]> Creatis software - clitk.git/blob - segmentation/clitkExtractLymphStation_6.txx
motion masks with and without bands
[clitk.git] / segmentation / clitkExtractLymphStation_6.txx
1
2
3 //--------------------------------------------------------------------
4 template <class ImageType>
5 void 
6 clitk::ExtractLymphStationsFilter<ImageType>::
7 ExtractStation_6_SetDefaultValues()
8 {
9 }
10 //--------------------------------------------------------------------
11
12
13 //--------------------------------------------------------------------
14 template <class TImageType>
15 void 
16 clitk::ExtractLymphStationsFilter<TImageType>::
17 ExtractStation_6() {
18   if ((!CheckForStation("6")) && (!CheckForStation("6"))) return;
19
20   StartNewStep("Stations 6");
21   StartSubStep(); 
22
23   // Get the current support 
24   StartNewStep("[Station 6] Get the current 6 suppport");
25   m_ListOfStations["6"] = m_ListOfSupports["S6"];
26   StopCurrentStep<MaskImageType>(m_ListOfStations["6"]);
27     
28   // Generic RelativePosition processes
29   m_ListOfStations["6"] = this->ApplyRelativePositionList("Station_6", m_ListOfStations["6"]);
30
31   // Remove some structures
32   m_Working_Support = m_ListOfStations["6"];
33   Remove_Structures(" 6", "Aorta");
34   Remove_Structures(" 6", "SVC");
35   Remove_Structures(" 6", "BrachioCephalicVein");
36   m_ListOfStations["6"] = m_Working_Support;
37
38   // Keep only one single CCL by slice
39   StartNewStep("[Station 6] Keep only one CCL by slice");  
40   m_ListOfStations["6"] = SliceBySliceKeepMainCCL<MaskImageType>(m_ListOfStations["6"], 
41                                                                   GetBackgroundValue(), 
42                                                                   GetForegroundValue());
43   StopCurrentStep<MaskImageType>(m_ListOfStations["6"]);
44
45   // Store image filenames into AFDB 
46   writeImage<MaskImageType>(m_ListOfStations["6"], "seg/Station6.mhd");
47   GetAFDB()->SetImageFilename("Station6", "seg/Station6.mhd"); 
48   WriteAFDB(); 
49   StopSubStep();
50
51 }
52 //--------------------------------------------------------------------
53
54