From: tbaudier Date: Thu, 5 Jul 2018 08:51:08 +0000 (+0200) Subject: Copy input direction into output in clitkImageArithmGenericFilter X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7526df96e8a4fc46bbdc9df84e4d51a88376a105;p=clitk.git Copy input direction into output in clitkImageArithmGenericFilter --- 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;