From: tbaudier Date: Mon, 26 Nov 2018 15:49:25 +0000 (+0100) Subject: Add double image managment for clitkAffineTransform X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff_plain;h=4155f049dc94e05e1f88a9cbdeb817243706c900 Add double image managment for clitkAffineTransform By default, the image use Float and did not manage double images. I add a condition to handle double image --- diff --git a/tools/clitkAffineTransformGenericFilter.txx b/tools/clitkAffineTransformGenericFilter.txx index ab488f3..a3ec420 100644 --- a/tools/clitkAffineTransformGenericFilter.txx +++ b/tools/clitkAffineTransformGenericFilter.txx @@ -94,6 +94,10 @@ namespace clitk // if (m_Verbose) std::cout << "Launching filter in "<< Dimension <<"D and signed_char..." << std::endl; // UpdateWithDimAndPixelType(); // } + else if(PixelType == "double"){ + if (m_Verbose) std::cout << "Launching filter in "<< Dimension <<"D and double..." << std::endl; + UpdateWithDimAndPixelType(); + } else { if (m_Verbose) std::cout << "Launching filter in "<< Dimension <<"D and float..." << std::endl; UpdateWithDimAndPixelType();