[vtkusers] How to set the vtkMatrix4x4 in function SetResliceAxes() of vtkImageReslice
Meehan, Bernard
MEEHANBT at nv.doe.gov
Wed Dec 9 10:40:10 EST 2015
The class documentation describes the matrix as representing transformations in homogenous (x, y, z, w) coordinates:
http://www.vtk.org/doc/nightly/html/classvtkMatrix4x4.html#details
https://en.wikipedia.org/wiki/Homogeneous_coordinates
https://andrewharvey4.wordpress.com/2008/09/29/xyzw-in-opengldirect3d-homogeneous-coordinates/
An example usage:
http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/ImageProcessing/Python/ImageSlicing.py
(I think that the example has the transformation you were looking for)
From: vtkusers <vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>> on behalf of 时光 <yihui.cao at qq.com<mailto:yihui.cao at qq.com>>
Date: Wednesday, December 9, 2015 at 1:43 AM
To: vtkusers <vtkusers at vtk.org<mailto:vtkusers at vtk.org>>
Subject: [vtkusers] How to set the vtkMatrix4x4 in function SetResliceAxes() of vtkImageReslice
Hi,
In Class vtkImageReslice , virtual void vtkImageReslice::SetResliceAxes (vtkMatrix4x4 *)
Why Matrix:
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
can get a slice that parallel to the XY plane?
What the Matrix means in mathematics?
Where can I get the detailed description?
Thanks,
Yihui Cao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151209/6c2e1962/attachment.html>
More information about the vtkusers
mailing list