]> Creatis software - clitk.git/commitdiff
Small change in error message.
authorDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Fri, 13 Jun 2014 11:42:59 +0000 (13:42 +0200)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Fri, 13 Jun 2014 11:42:59 +0000 (13:42 +0200)
tools/clitkImageStatisticsGenericFilter.txx

index 1995198234be2f07e4db47f3921dd9338e97482a..fabc429aef76a65c60c9fc5d031a80635ed8e6b3 100644 (file)
@@ -156,7 +156,7 @@ namespace clitk
 
           }
           else {
-            std::cerr << "Mask image has a different size/spacing than input. Abort" << std::endl;
+            std::cerr << "Mask image has a different size/spacing than input. Abort. (Use option to resize)" << std::endl;
             exit(-1);
           }
         }
@@ -169,6 +169,7 @@ namespace clitk
       labelImage->SetRegions(input->GetLargestPossibleRegion());
       labelImage->SetOrigin(input->GetOrigin());
       labelImage->SetSpacing(input->GetSpacing());
+      labelImage->SetDirection(input->GetDirection());
       labelImage->Allocate();
       labelImage->FillBuffer(m_ArgsInfo.label_arg[0]);
     }