]> Creatis software - clitk.git/commitdiff
Put in this file all commands related to S2RL
authorDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Fri, 29 Jul 2011 13:20:13 +0000 (15:20 +0200)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Fri, 29 Jul 2011 13:20:13 +0000 (15:20 +0200)
segmentation/clitkExtractLymphStation_2RL.txx

index ee9d2f3a221fcb1929ef66f3536789c0a5250ab6..260e50a42ef4ed97d153d3c8f61d05bfe6f260ac 100644 (file)
@@ -33,24 +33,25 @@ void
 clitk::ExtractLymphStationsFilter<TImageType>::
 ExtractStation_2RL()
 {
-  if (CheckForStation("2RL")) {
-    ExtractStation_2RL_SI_Limits();
-    ExtractStation_2RL_Post_Limits();
+  if ((!CheckForStation("2R")) && (!CheckForStation("2L"))) return;
 
-    ExtractStation_2RL_Ant_Limits2();
-    //ExtractStation_2RL_Ant_Limits(); 
+  ExtractStation_2RL_SI_Limits();
+  ExtractStation_2RL_Post_Limits();
+  
+  ExtractStation_2RL_Ant_Limits2();
+  //ExtractStation_2RL_Ant_Limits(); 
+  
+  ExtractStation_2RL_LR_Limits(); 
+  ExtractStation_2RL_Remove_Structures(); 
+  ExtractStation_2RL_SeparateRL(); 
+  
+  // Store image filenames into AFDB 
+  writeImage<MaskImageType>(m_ListOfStations["2R"], "seg/Station2R.mhd");
+  writeImage<MaskImageType>(m_ListOfStations["2L"], "seg/Station2L.mhd");
+  GetAFDB()->SetImageFilename("Station2R", "seg/Station2R.mhd"); 
+  GetAFDB()->SetImageFilename("Station2L", "seg/Station2L.mhd"); 
+  WriteAFDB(); 
 
-    ExtractStation_2RL_LR_Limits(); 
-    ExtractStation_2RL_Remove_Structures(); 
-    ExtractStation_2RL_SeparateRL(); 
-    
-    // Store image filenames into AFDB 
-    writeImage<MaskImageType>(m_ListOfStations["2R"], "seg/Station2R.mhd");
-    writeImage<MaskImageType>(m_ListOfStations["2L"], "seg/Station2L.mhd");
-    GetAFDB()->SetImageFilename("Station2R", "seg/Station2R.mhd"); 
-    GetAFDB()->SetImageFilename("Station2L", "seg/Station2L.mhd"); 
-    WriteAFDB(); 
-  }
 }
 //--------------------------------------------------------------------