X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvBinaryImageOverlayActor.cxx;h=1c18def90c2216c5b2d24c7ef3a0834e2f917513;hb=1c6241402b25efea0052f0464be9a494e761b19e;hp=061bdb8ff6387d1a73c9253138970def5f71db31;hpb=8b99436ccbdc216bb3e327ad2e9fa17d9882157e;p=clitk.git diff --git a/vv/vvBinaryImageOverlayActor.cxx b/vv/vvBinaryImageOverlayActor.cxx index 061bdb8..1c18def 100644 --- a/vv/vvBinaryImageOverlayActor.cxx +++ b/vv/vvBinaryImageOverlayActor.cxx @@ -120,9 +120,11 @@ void vvBinaryImageOverlayActor::Initialize(bool IsVisible) mFusionReslice->SetBackgroundColor(-1000,-1000,-1000,1); } - vtkSmartPointer mConcatenatedFusionTransform = vtkSmartPointer::New(); + mConcatenatedFusionTransform = vtkSmartPointer::New(); mConcatenatedFusionTransform->Identity(); - mConcatenatedFusionTransform->Concatenate(mImage->GetTransform()[0]); + if (!mImage->GetTransform().empty()){ + mConcatenatedFusionTransform->Concatenate(mImage->GetTransform()[0]); + } mConcatenatedFusionTransform->Concatenate(mSlicer->GetSlicingTransform()); mFusionReslice->SetResliceAxes(mConcatenatedFusionTransform->GetMatrix()); if (mImage->IsTimeSequence()) {