X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.txx;h=a6d37c8cbbd8f0447f69c990235fa0963afedb53;hb=ae2fd017cec9dc939c314e49718abcdad161968c;hp=14da10a227f7d825cde021a143b8c2f84a74d7bb;hpb=6194949c0beb1589904e22381b9aba1bbface172;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())); } //--------------------------------------------------------------------