]> Creatis software - clitk.git/commitdiff
Debug fusion/overlay display with VTK5
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 14:45:12 +0000 (15:45 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 14:45:12 +0000 (15:45 +0100)
vv/vvSlicer.cxx

index 690ff2ab17689989ed4788a322380eaf67848170..19c4516343b8e3a271f5fe49c9e8bb4cc1759e6a 100644 (file)
@@ -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();
 }
 //------------------------------------------------------------------------------