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

Dženan Zukić dzenanz at gmail.com
Thu Apr 26 08:26:19 EDT 2012


It is not clear what you are trying to accomplish. Is it 2D image or 3D
image? If you need to display in a different place in some 3D space, then
you need to change image's transformation matrix, not the image itself.

On Wed, Apr 25, 2012 at 18:39, Sheena Gao <280908696 at qq.com> wrote:

> Hi all,
>
> I am wondering if we can transfer the pixels using a 3x3 or 4x4 matrix in
> VTK. Here is what I actually want to do:
>              matrix
> pixel1--------------->pixel2
>
> The matrix is got from MATLAB and I can set it in vtkMatrix4x4. I saw
> vtkImageShiftScale, but each pixel is multiplied or added by the same value
> every time. Is it possible to move pixels by a matrix? If possible, which
> function should be used? Thank you.
>
> Best Regards,
> 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-tp5665394p5665394.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/3c4b67d5/attachment.htm>


More information about the vtkusers mailing list