]> Creatis software - clitk.git/blobdiff - tools/clitkSetBackgroundGenericFilter.txx
clitkSetBackground accepts vector fields
[clitk.git] / tools / clitkSetBackgroundGenericFilter.txx
index 8a825ad408fa20bf1119562efb15e27a5d8aee97..63ccfb026a9d75ade4c9b978990a54b13c445d3b 100644 (file)
@@ -54,7 +54,6 @@ SetBackgroundGenericFilter::UpdateWithDim(std::string PixelType)
   }
 }
 
-
 //-------------------------------------------------------------------
 // Update with the number of dimensions and the pixeltype
 //-------------------------------------------------------------------
@@ -65,7 +64,7 @@ SetBackgroundGenericFilter::UpdateWithDimAndPixelType()
 
   // ImageTypes
   typedef itk::Image<PixelType, Dimension> InputImageType;
-  typedef itk::Image<float, Dimension> MaskImageType;
+  typedef itk::Image<unsigned char, Dimension> MaskImageType;
 
   // Read the input
   typedef itk::ImageFileReader<InputImageType> InputReaderType;