[vtkusers] Molding an image slice

David Gobbi david.gobbi at gmail.com
Tue Mar 21 12:45:26 EDT 2017


Hi Shark,

The vtkTexture takes an arbitrary vtkImageData as input, the input
(obviously) doesn't have to come from a jpeg file.  However, you will have
to convert your CT image data to RGB or RGBA before using it as a texture,
e.g. with vtkImageMapToColors via a greyscale lookup table.

 - David

On Tue, Mar 21, 2017 at 10:35 AM, Shark <m.nunes at fratoria.com> wrote:

> David,
>
> Unfortunately I haven't been able to figure it out.
>
> I do not have a jpg image. I have a 3D CT image, stored in a VTKImageData.
> I
> also have another vtkImageData with 3 scalars - vector(x,y,z) representing
> the displacement of each CT pixel.
>
> I am rendering the CT slice and the vectors as a glyph3D with arrow source.
>
> What I want is to "stretch" the CT slice to fit the arrows, hence the
> molding.
>
> It seams the following examples, combined with the one you provided, are
> something similar to what I want to achieve:
> http://www.paraview.org/Wiki/VTK/Examples/Cxx/PolyData/WarpSurface
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/WarpVector
>
> However I am having a hard time understanding how to put things together
> with the CT data's slice.
> Best,
> Shark
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/Molding-an-image-slice-tp5742555p5742574.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170321/7d90994e/attachment.html>


More information about the vtkusers mailing list