[Paraview] Gradient of an image
Jérôme
jerome.velut at gmail.com
Wed Mar 2 16:32:13 EST 2011
Hi David,
I think that your image has a 3-components data array, such as RGB.
ParaView "Gradient" filter is based on vtkImageGradient which expects
a 1-component image. You can
- convert your image in grey level with a third party software,
- use the calculator to compute a norm of the input image,
- enable the vtkImageMagnitude or vtkImageLuminance in ParaView (I
already did it here: http://github.com/jeromevelut/Peavip, but it
seems that vtkImageMagnitude needs some update...)
HTH
Jerome
2011/3/2 David Doria <daviddoria at gmail.com>:
> If I open a png file, the Gradient filter is grayed out. Is there a way to
> compute the gradient of such an image file?
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list