]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractMediastinumGenericFilter.txx
Moved from repository clitk to clitk.private/tests_dav
[clitk.git] / segmentation / clitkExtractMediastinumGenericFilter.txx
index 1760cac938e9508ce651dd1b942b24a99277279b..679fb36cc22deb0f372b21fe5966bbc414b3cc7f 100644 (file)
@@ -3,7 +3,7 @@
 
   Authors belong to: 
   - University of LYON              http://www.universite-lyon.fr/
-  - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.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
@@ -14,7 +14,7 @@
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-  ======================================================================-====*/
+  ===========================================================================**/
 
 #ifndef CLITKEXTRACTMEDIASTINUMSGENERICFILTER_TXX
 #define CLITKEXTRACTMEDIASTINUMSGENERICFILTER_TXX
@@ -75,13 +75,13 @@ SetOptionsFromArgsInfoToFilter(FilterType * f)
   f->SetOutputMediastinumFilename(mArgsInfo.output_arg);
   f->SetVerboseMemoryFlag(mArgsInfo.verboseMemory_flag);
 
+  f->SetDistanceMaxToAnteriorPartOfTheVertebralBody(mArgsInfo.maxAntSpine_arg);
   f->SetUseBones(mArgsInfo.useBones_flag);
-  f->SetIntermediateSpacing(mArgsInfo.spacing_arg);
-  f->SetFuzzyThreshold1(mArgsInfo.fuzzy1_arg);
-  f->SetFuzzyThreshold2(mArgsInfo.fuzzy2_arg);
-  f->SetFuzzyThreshold3(mArgsInfo.fuzzy3_arg);
-  f->SetUpperThreshold(mArgsInfo.upper_arg);
-  f->SetLowerThreshold(mArgsInfo.lower_arg);
+
+  // Set RelativePositionList filenames
+  for(uint i=0; i<mArgsInfo.relpos_given; i++) {
+    f->AddRelativePositionListFilename(mArgsInfo.relpos_arg[i]);
+  }
 }
 //--------------------------------------------------------------------