]> Creatis software - clitk.git/commitdiff
Ensure to have the same Direction for input and label images for clitkImageStatistics
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 18 Feb 2016 11:11:35 +0000 (12:11 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 18 Feb 2016 11:11:35 +0000 (12:11 +0100)
tools/clitkImageStatisticsGenericFilter.txx

index b87114d6d591008f715c8d20989fdc3c6fd7b49d..0d798e9b9ba7d76a20f4bd6899e5ef25e25ca589 100644 (file)
@@ -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());