X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.txx;h=14da10a227f7d825cde021a143b8c2f84a74d7bb;hb=3b74618a8efd24d3d277c75fda1ddc4b2f104d51;hp=90eeb02338e21408be4854687b1ab5969ef1febc;hpb=13408338a1ef8779be07f538aacb787683aa5ddb;p=clitk.git diff --git a/common/vvImage.txx b/common/vvImage.txx index 90eeb02..14da10a 100644 --- a/common/vvImage.txx +++ b/common/vvImage.txx @@ -47,6 +47,9 @@ void vvImage::AddItkImage(TItkImageType *input) (*matrix)[i][3] += input->GetOrigin()[i]; } + // GetDirection provides the forward transform, vtkImageReslice wants the inverse + matrix->Invert(); + mTransform->SetMatrix(matrix); } //--------------------------------------------------------------------