void Convolution::setImage(vtkImageData *image)
{
_image = image;
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_convolve->SetInput(_image);
+#else
+ _convolve->SetInputData(_image);
+#endif
}
void Convolution::setFactor(double factor)
double kernel[] = {0.0,1.0,0.0,1.0,-_factor,1.0,0.0,1.0,0.0};
_convolve->SetKernel3x3(kernel);
_convolve->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_cast->SetInput(_convolve->GetOutput());
+#else
+ _cast->SetInputData(_convolve->GetOutput());
+#endif
//_cast->SetOutputScalarTypeToDouble();
_cast->Update();
}
else
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_cast->SetInput(_image);
+#else
+ _cast->SetInputData(_image);
+#endif
_cast->SetOutputScalarType(_image->GetScalarType());
_cast->Update();
}