From 056be04b5ecaf235c86104c3b3c89ac71e0d2b3c Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 10 Mar 2016 15:45:12 +0100 Subject: [PATCH] Debug fusion/overlay display with VTK5 --- vv/vvSlicer.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 690ff2a..19c4516 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -417,6 +417,7 @@ void vvSlicer::SetOverlay(vvImage::Pointer overlay) mOverlayReslice->SetResliceTransform(mConcatenatedOverlayTransform); #if VTK_MAJOR_VERSION <= 5 mOverlayReslice->SetInput(0, mOverlay->GetFirstVTKImageData()); + mImageReslice->UpdateInformation(); #else mOverlayReslice->SetInputData(0, mOverlay->GetFirstVTKImageData()); #endif @@ -483,6 +484,7 @@ void vvSlicer::SetFusion(vvImage::Pointer fusion, int fusionSequenceCode) mFusionReslice->SetResliceTransform(mConcatenatedFusionTransform); #if VTK_MAJOR_VERSION <= 5 mFusionReslice->SetInput(0, mFusion->GetFirstVTKImageData()); + mFusionReslice->UpdateInformation(); #else mFusionReslice->SetInputData(0, mFusion->GetFirstVTKImageData()); #endif @@ -1048,6 +1050,7 @@ void vvSlicer::AdjustResliceToSliceOrientation(vtkImageReslice *reslice) reslice->SetOutputOrigin(origin); reslice->SetOutputSpacing(spacing); reslice->UpdateInformation(); + reslice->GetOutput()->UpdateInformation(); } //------------------------------------------------------------------------------ -- 2.47.1