]> Creatis software - clitk.git/commitdiff
Copy input direction into output in clitkImageArithmGenericFilter
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 5 Jul 2018 08:51:08 +0000 (10:51 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 5 Jul 2018 08:51:08 +0000 (10:51 +0200)
tools/clitkImageArithmGenericFilter.txx

index ba1fc6f6eaa672aceb28d5186d7d708037544ca4..b2733472d66c54d5d3f41c9dc508522faec9cbb5 100644 (file)
@@ -163,6 +163,7 @@ void ImageArithmGenericFilter<args_info_type>::UpdateWithInputImageType()
       output->SetRegions(input1->GetLargestPossibleRegion());
       output->SetOrigin(input1->GetOrigin());
       output->SetSpacing(input1->GetSpacing());
+      output->SetDirection(input1->GetDirection());
       output->Allocate();
       // Set output iterator
       typedef itk::ImageRegionIterator<OutputImageType> IteratorOutputType;