New Gradient filter has issues
The new Gradient filter (the one that is supposed to combine the Gradient and Gradient of Unstructured Grids filters) has multiple issues that need to be fixed:
-
For vtkImageData (or composite dataset of vtkImageData), be able to compute the gradient of a vector (array with 3 components per tuple) for point data. Currently the following error is generated:
( 39.795s) [paraview ] vtkImageGradient.cxx:322 ERR| vtkImageGradient (0x8a68060): Execute: input has more than one component. The input to gradient should be a single component image. Think about it. If you insist on using a color image then run it though RGBToHSV then ExtractComponents to get the V components. That's probably what you want anyhow.
-
For vtkImageData, trying to compute the gradient of cell data seems to be incorrect. See the results of the attached state file which should have [0, 0, 0] as the value for ResultGradient.gradient.pvsm