]> Creatis software - clitk.git/blobdiff - tools/clitkImageStatisticsGenericFilter.txx
Ensure to have the same Direction for input and label images for clitkImageStatistics
[clitk.git] / 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());