From 10ab5094ede8057d004d0232ce74f9194f3ebe4e Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 18 Feb 2016 12:11:35 +0100 Subject: [PATCH] Ensure to have the same Direction for input and label images for clitkImageStatistics --- tools/clitkImageStatisticsGenericFilter.txx | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/clitkImageStatisticsGenericFilter.txx b/tools/clitkImageStatisticsGenericFilter.txx index b87114d..0d798e9 100644 --- a/tools/clitkImageStatisticsGenericFilter.txx +++ b/tools/clitkImageStatisticsGenericFilter.txx @@ -166,6 +166,7 @@ namespace clitk } else { labelImage=LabelImageType::New(); + labelImage->SetDirection(input->GetDirection()); labelImage->SetRegions(input->GetLargestPossibleRegion()); labelImage->SetOrigin(input->GetOrigin()); labelImage->SetSpacing(input->GetSpacing()); -- 2.47.1