[vtkusers] Glyphing gradient vectors
Eric E. Monson
emonson at cs.duke.edu
Fri Oct 8 09:31:30 EDT 2010
Don't you just do gradientFilter->SetDimensionality(3) to get a 3d output? This is what you do in ParaView...
-Eric
On Oct 8, 2010, at 9:08 AM, David Doria wrote:
> If I use vtkImageGradient on a 2D image, a 2D ImageScalarsGradient is produced. If I want to glyph these vectors as arrows, they must be 3D (in order to call SetActiveVectors).I tried converting them to 3D manually but it causes the example to segfault (after the interactor starts). Can anyone see what is wrong with this?
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Gradient
>
> Thanks,
>
> David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101008/0dfa58ac/attachment.htm>
More information about the vtkusers
mailing list