From: dsarrut Date: Tue, 11 May 2010 09:06:09 +0000 (+0000) Subject: - add other types/dim (warning still bugs ! do not use) X-Git-Tag: v1.2.0~666 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=000ac5b867a708575268c7c823db4fcbe727c2d6;p=clitk.git - add other types/dim (warning still bugs ! do not use) --- diff --git a/filters/clitkResampleImageGenericFilter.txx b/filters/clitkResampleImageGenericFilter.txx index 9bd079b..a380824 100644 --- a/filters/clitkResampleImageGenericFilter.txx +++ b/filters/clitkResampleImageGenericFilter.txx @@ -28,7 +28,7 @@ namespace clitk { template ResampleImageGenericFilter::ResampleImageGenericFilter(): ImageToImageGenericFilter("Resample") { - // InitializeImageType<2>(); + InitializeImageType<2>(); InitializeImageType<3>(); InitializeImageType<4>(); } @@ -39,8 +39,8 @@ namespace clitk { template template void ResampleImageGenericFilter::InitializeImageType() { - // ADD_DEFAULT_IMAGE_TYPES(Dim); - ADD_IMAGE_TYPE(Dim, short); + ADD_DEFAULT_IMAGE_TYPES(Dim); + //ADD_IMAGE_TYPE(Dim, short); } //-------------------------------------------------------------------- @@ -89,7 +89,7 @@ namespace clitk { typename OutputImageType::SpacingType spacing; typename OutputImageType::SizeType size; if (mArgsInfo.spacing_given == 1) { - filter->SetIsoSpacing(mArgsInfo.spacing_arg[0]); + filter->SetOutputIsoSpacing(mArgsInfo.spacing_arg[0]); } else { if ((mArgsInfo.spacing_given != 0) && (mArgsInfo.size_given != 0)) {