]> Creatis software - clitk.git/commitdiff
add short type
authordsarrut <dsarrut>
Wed, 15 Dec 2010 08:54:35 +0000 (08:54 +0000)
committerdsarrut <dsarrut>
Wed, 15 Dec 2010 08:54:35 +0000 (08:54 +0000)
segmentation/clitkFillMaskFilter.txx
segmentation/clitkFillMaskGenericFilter.txx

index 7ddda01b3f19f4a3cd4650741f5f010e01672cda..70b481398d42298cedfd62e6841f5da7d15e11d2 100644 (file)
@@ -27,9 +27,6 @@ clitk::FillMaskFilter<ImageType>::FillMaskFilter():
   // Default global options
   this->SetNumberOfRequiredInputs(1);
   ResetDirections();
-  AddDirection(2);
-  AddDirection(1);
-  AddDirection(0);
 }
 //--------------------------------------------------------------------
 
@@ -108,7 +105,6 @@ GenerateData()
   //---------------------------------------- 
   typename InternalImageType::Pointer output = inputCaster->GetOutput();
   for (unsigned int i=0; i<m_Directions.size();i++) {
-    DD(i);
     //---------------------------------------- 
     // Fill the holes of a mask in 2D
     //----------------------------------------
@@ -196,7 +192,6 @@ GenerateData()
       }
     
     // Join to a 3D image      
-    std::cout<<"Joining the slices..."<<std::endl;
     joinFilter->Update();
     
     // Permute the axes to reset to orientation
@@ -229,17 +224,13 @@ GenerateData()
     output->SetOrigin(input->GetOrigin());
   }
   
-  writeImage<InternalImageType>(output, "toto.mhd");
-  
   // Cast
-  DD("cast");
   typedef itk::CastImageFilter<InternalImageType,ImageType> OutputCastImageFilterType;
   typename OutputCastImageFilterType::Pointer outputCaster =OutputCastImageFilterType::New();
   outputCaster->SetInput(output);
   outputCaster->Update();
   
   // Output
-  DD("Graft");
   this->GraftOutput(outputCaster->GetOutput());
 }
 //--------------------------------------------------------------------
index 34504361f51f748548f243c337e76e02028ca8e6..47fe3e5d98f9dd61461f1241da61e809d7fc1f5d 100644 (file)
@@ -38,6 +38,7 @@ template<unsigned int Dim>
 void clitk::FillMaskGenericFilter<ArgsInfoType>::InitializeImageType() 
 {  
   ADD_IMAGE_TYPE(Dim, uchar);
+  ADD_IMAGE_TYPE(Dim, short);
   // ADD_IMAGE_TYPE(Dim, int);
   // ADD_IMAGE_TYPE(Dim, float);
 }