From: tbaudier Date: Wed, 9 Mar 2016 13:36:22 +0000 (+0100) Subject: With the resample tool, ensure to have the same transformation after the resampling... X-Git-Tag: v1.4.0~33 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=677f9f9f55d5f4d2667013cacd01c9d80b2259f2;p=clitk.git With the resample tool, ensure to have the same transformation after the resampling in vv --- diff --git a/vv/vvToolResample.cxx b/vv/vvToolResample.cxx index 46d54ef..64b3768 100644 --- a/vv/vvToolResample.cxx +++ b/vv/vvToolResample.cxx @@ -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(); }