From: dsarrut Date: Wed, 15 Dec 2010 08:54:35 +0000 (+0000) Subject: add short type X-Git-Tag: v1.2.0~281 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c1fb4e570939d49098c59e151711822f19bdba10;p=clitk.git add short type --- diff --git a/segmentation/clitkFillMaskFilter.txx b/segmentation/clitkFillMaskFilter.txx index 7ddda01..70b4813 100644 --- a/segmentation/clitkFillMaskFilter.txx +++ b/segmentation/clitkFillMaskFilter.txx @@ -27,9 +27,6 @@ clitk::FillMaskFilter::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; iUpdate(); // Permute the axes to reset to orientation @@ -229,17 +224,13 @@ GenerateData() output->SetOrigin(input->GetOrigin()); } - writeImage(output, "toto.mhd"); - // Cast - DD("cast"); typedef itk::CastImageFilter OutputCastImageFilterType; typename OutputCastImageFilterType::Pointer outputCaster =OutputCastImageFilterType::New(); outputCaster->SetInput(output); outputCaster->Update(); // Output - DD("Graft"); this->GraftOutput(outputCaster->GetOutput()); } //-------------------------------------------------------------------- diff --git a/segmentation/clitkFillMaskGenericFilter.txx b/segmentation/clitkFillMaskGenericFilter.txx index 3450436..47fe3e5 100644 --- a/segmentation/clitkFillMaskGenericFilter.txx +++ b/segmentation/clitkFillMaskGenericFilter.txx @@ -38,6 +38,7 @@ template void clitk::FillMaskGenericFilter::InitializeImageType() { ADD_IMAGE_TYPE(Dim, uchar); + ADD_IMAGE_TYPE(Dim, short); // ADD_IMAGE_TYPE(Dim, int); // ADD_IMAGE_TYPE(Dim, float); }