<div class="gmail_extra">Hi Sheena,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I think if I get your question right, you&#39;d probably have to use vtkImageReslice (<a href="http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html">http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html</a>). You can set the reslice axes from a matrix, and set the output origin, extent and spacing. It&#39;s a bit of a Swiss-army chainsaw, but it gets the job done.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Setting the transform on the volume, for example (as Dženan says) would work for cases where you&#39;re translating, scaling or rotating. If you&#39;re shearing, for example, it probably won&#39;t work. And this will not affect the image; it&#39;ll only change the visualization. So if you want to use the transformed data for something else, you&#39;ll need to use reslice.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">HTH</div><div class="gmail_extra">Shash<br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 8:31 PM, Sheena Gao <span dir="ltr">&lt;<a href="mailto:280908696@qq.com" target="_blank">280908696@qq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dženan,<br>
<br>
Thanks for your reply. It is a 3D image. Well Strictly speaking I am not<br>
going to transform the image. I want to make the image distorted.<br>
<br>
Thank you,<br>
Sheena<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Is-it-possible-to-move-each-pixel-using-a-3x3-4x4-matrix-in-VTK-tp5665394p5667862.html" target="_blank">http://vtk.1045678.n5.nabble.com/Is-it-possible-to-move-each-pixel-using-a-3x3-4x4-matrix-in-VTK-tp5665394p5667862.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>