]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkVecImageGaussianSmooth.cxx
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkVecImageGaussianSmooth.cxx
index a2ccc9a5f9a1eeb8425a5fbffcad9d84881c460d..689b9b14f3def9440e59e2c00ec08c8ad13a43a1 100644 (file)
@@ -82,8 +82,17 @@ BBTK_BLACK_BOX_IMPLEMENTATION(VecImageGaussianSmooth,bbtk::AtomicBlackBox);
                for (i=0 ;  i<size ; i++)
                {       
                        vtkimagegaussiansmooth = vtkImageGaussianSmooth::New();
+
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                        vtkimagegaussiansmooth->SetInput( bbGetInputIn()[i] );
+#else
+                       vtkimagegaussiansmooth->SetInputData( bbGetInputIn()[i] );
+#endif
+
                        vtkimagegaussiansmooth->SetStandardDeviation( stdvX,stdvY, stdvZ ); 
+                       vtkimagegaussiansmooth->Modified();
                        vtkimagegaussiansmooth->Update();
                        VecResult.push_back( vtkimagegaussiansmooth->GetOutput() );
                        VecVtkimagegaussiansmooth.push_back(vtkimagegaussiansmooth);