[vtkusers] vtkImageReslice
João Domingos
joao.sousa.domingos at gmail.com
Mon Jan 21 04:23:17 EST 2013
Hey again,
Does anyone have any idea to this problem? I guess it is something simple..
Is this the answer
http://vtk.1045678.n5.nabble.com/vtkImageReslice-axes-direction-based-on-a-vtkPlane-td4825775.html?
Meaning: VTK 5.10, that I guess includes vtkImageResliceMapper, and use of
this class and method called SetSlicePlane() ?
Many thanks for your time,
Joao
On 17 January 2013 10:07, João Domingos <joao.sousa.domingos at gmail.com>wrote:
> Dear folks,
>
> Given the following:
>
> reslice = vtk.vtkImageReslice()
> reslice.SetInputConnection(self.image_reader.GetOutputPort())
> reslice.SetOutputDimensionality(2)
> reslice.SetInterpolationModeToCubic()
> reslice.SetResliceAxes(axes_matrix_from_vtkMatrix4x4)
>
> I am able to extract the 2D slice I want from my 3D volume, but it is
> shortened on the sides and cuts both the right and left side of the volume
> (cone). The height of the resulting slice is fine and includes the whole
> cone. Imagining the volume is a cube, the resulting slice is a rectangle
> (shortened on the sides).
>
> How can I choose the dimension of the resulting slice to include the whole
> cone, i.e. basically how can I slice the whole volume?
>
>
> Many thanks in advance!
>
> Joao
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130121/294a76b7/attachment.htm>
More information about the vtkusers
mailing list