X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.txx;h=a6d37c8cbbd8f0447f69c990235fa0963afedb53;hb=dfadc9f44a977680ed6314d95badbe7e2fc11e93;hp=14da10a227f7d825cde021a143b8c2f84a74d7bb;hpb=3cd19dd5210dda320f504c664caf9e42c3ce330e;p=clitk.git diff --git a/common/vvImage.txx b/common/vvImage.txx index 14da10a..a6d37c8 100644 --- a/common/vvImage.txx +++ b/common/vvImage.txx @@ -50,7 +50,10 @@ 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); + //META DATA + mDictionary.push_back(&(input->GetMetaDataDictionary())); } //--------------------------------------------------------------------