From: tbaudier Date: Thu, 18 Feb 2016 11:11:35 +0000 (+0100) Subject: Ensure to have the same Direction for input and label images for clitkImageStatistics X-Git-Tag: v1.4.0~59 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=10ab5094ede8057d004d0232ce74f9194f3ebe4e;p=clitk.git Ensure to have the same Direction for input and label images for clitkImageStatistics --- 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());