From 4155f049dc94e05e1f88a9cbdeb817243706c900 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Mon, 26 Nov 2018 16:49:25 +0100 Subject: [PATCH] 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 --- tools/clitkAffineTransformGenericFilter.txx | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.47.1