]> Creatis software - creaRigidRegistration.git/blobdiff - lib/MyGridOnImageGenerator.cpp
#3113 crea Rigid Registration Bug New Normal - branch vtk7itk4 compilation with...
[creaRigidRegistration.git] / lib / MyGridOnImageGenerator.cpp
index 91e5ff41cd2f57edfd5c4bf734ff6b840f9eeec4..b997d0e39e6cacc8898f50482529ccaad39d232e 100755 (executable)
@@ -91,7 +91,12 @@ vtkImageData* MyGridOnImageGenerator::getGridOnImage( )
 
        vtkImageData* gridImage = vtkImageData::New();
        gridImage->ShallowCopy(image);
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
        gridImage->Update();
+#else
+       gridImage->Modified();
+#endif
 
        //Get image spacing, size and mix and max values
        gridImage->GetSpacing(spc);