[vtkusers] Is it possible to move each pixel using a 3x3/4x4 matrix in VTK?

Shashwath T.R. trshash at gmail.com
Thu Apr 26 11:37:57 EDT 2012


Hi Sheena,

I think if I get your question right, you'd probably have to use
vtkImageReslice (
http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html). You can set
the reslice axes from a matrix, and set the output origin, extent and
spacing. It's a bit of a Swiss-army chainsaw, but it gets the job done.

Setting the transform on the volume, for example (as Dženan says) would
work for cases where you're translating, scaling or rotating. If you're
shearing, for example, it probably won't work. And this will not affect the
image; it'll only change the visualization. So if you want to use the
transformed data for something else, you'll need to use reslice.

HTH
Shash

On Thu, Apr 26, 2012 at 8:31 PM, Sheena Gao <280908696 at qq.com> wrote:

> Hi Dženan,
>
> Thanks for your reply. It is a 3D image. Well Strictly speaking I am not
> going to transform the image. I want to make the image distorted.
>
> Thank you,
> Sheena
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Is-it-possible-to-move-each-pixel-using-a-3x3-4x4-matrix-in-VTK-tp5665394p5667862.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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120426/529bb232/attachment.htm>


More information about the vtkusers mailing list