]> Creatis software - clitk.git/commitdiff
With the resample tool, ensure to have the same transformation after the resampling...
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 13:36:22 +0000 (14:36 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 13:36:22 +0000 (14:36 +0100)
vv/vvToolResample.cxx

index 46d54efbca948587d3f995825dade7391e9822b5..64b3768bed771352d5c70ef44ce5d5dea84c500f 100644 (file)
@@ -538,6 +538,7 @@ void vvToolResample::apply()
   // Go !
   mFilter->Update();
   mOutput = mFilter->GetOutputVVImage();
+  mOutput->GetTransform()[0]->SetMatrix(mCurrentSlicerManager->GetSlicer(0)->GetConcatenatedTransform()->GetMatrix());
   AddImage(mOutput,GetOutputFileName());
   close();
 }