X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.txx;h=55b785fb4814571fd4c0a7788699d03c848b937f;hb=497f4e3a54a75a1dce99ad4a94a3aaa1ea904323;hp=14da10a227f7d825cde021a143b8c2f84a74d7bb;hpb=6194949c0beb1589904e22381b9aba1bbface172;p=clitk.git diff --git a/common/vvImage.txx b/common/vvImage.txx index 14da10a..55b785f 100644 --- a/common/vvImage.txx +++ b/common/vvImage.txx @@ -50,7 +50,8 @@ void vvImage::AddItkImage(TItkImageType *input) // GetDirection provides the forward transform, vtkImageReslice wants the inverse matrix->Invert(); - mTransform->SetMatrix(matrix); + mTransform.push_back(vtkSmartPointer::New()); + mTransform.back()->SetMatrix(matrix); } //--------------------------------------------------------------------