X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBSplineCoefficientsToValuesGenericFilter.txx;h=0111db24da506afa39a3bec1286af876104002df;hb=b1a94242c6faae33b9e0908a24cacc3e3f7d4e92;hp=76be246de183d3019f38b3572d77fae92b61f486;hpb=a26cd8a19e1b9ad8344ab501436045f171a73713;p=clitk.git diff --git a/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx b/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx index 76be246..0111db2 100644 --- a/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx +++ b/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx @@ -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,9 +14,10 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef clitkBSplineCoefficientsToValuesGenericFilter_txx #define clitkBSplineCoefficientsToValuesGenericFilter_txx +#include /* ================================================= * @file clitkBSplineCoefficientsToValuesGenericFilter.txx @@ -277,13 +278,17 @@ namespace clitk } typename OutputImageType::Pointer output = resampler->GetOutput(); - writeImage(output, "/home/jef/tmp/output1.mhd", true); + //writeImage(output, "/home/jef/tmp/output1.mhd", true); // Matrix Transform if(m_ArgsInfo.matrix_given) { +#if ITK_VERSION_MAJOR >= 4 + typedef itk::TransformToDisplacementFieldSource ConvertorType; +#else typedef itk::TransformToDeformationFieldSource ConvertorType; +#endif typename ConvertorType::Pointer filter= ConvertorType::New(); filter->SetOutputParametersFromImage(output); @@ -297,7 +302,7 @@ namespace clitk filter->SetTransform(transform); filter->Update(); typename OutputImageType::Pointer output2=filter->GetOutput(); - writeImage(output2, "/home/jef/tmp/output2.mhd", true); + //writeImage(output2, "/home/jef/tmp/output2.mhd", true); // Add typedef itk::AddImageFilter< OutputImageType, OutputImageType, OutputImageType > AddType;