From 7526df96e8a4fc46bbdc9df84e4d51a88376a105 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 5 Jul 2018 10:51:08 +0200 Subject: [PATCH] Copy input direction into output in clitkImageArithmGenericFilter --- tools/clitkImageArithmGenericFilter.txx | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/clitkImageArithmGenericFilter.txx b/tools/clitkImageArithmGenericFilter.txx index ba1fc6f..b273347 100644 --- a/tools/clitkImageArithmGenericFilter.txx +++ b/tools/clitkImageArithmGenericFilter.txx @@ -163,6 +163,7 @@ void ImageArithmGenericFilter::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 IteratorOutputType; -- 2.47.1