]> Creatis software - clitk.git/commitdiff
Debug clitkImageConvert tool
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 14 Oct 2016 12:28:59 +0000 (14:28 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 14 Oct 2016 12:28:59 +0000 (14:28 +0200)
Now the tool can write an image

tools/clitkImageConvertGenericFilter.cxx

index a60338513175f4bb526f79b31d784af495a8fc39..a1b28c22014d14606902cd338ceb908170edd331 100644 (file)
@@ -171,9 +171,9 @@ void clitk::ImageConvertGenericFilter::UpdateWithInputImageType()
       // Empty meta info
       itk::MetaDataDictionary dict;// = new itk::MetaDataDictionary;
       input->SetMetaDataDictionary(dict);
-
-      this->SetNextOutput<InputImageType>(input);
     }
+    this->SetNextOutput<InputImageType>(input);
+
 
   } else {
     // "trick" to call independent versions of update according to the