[vtkusers] vtkImageReslice and part of volume

Alex Malyushytskyy alexmalvtk at gmail.com
Mon Nov 28 22:10:21 EST 2011


I don't understand how you are trying to achieve what you want with code below.
I have no experience with volume techniques, but as far as I remember
from  reading the book
the closest operation is cropping the volume.

check http://www.vtk.org/doc/release/4.0/html/classvtkVolumeRayCastMapper.html

Alex

On Fri, Nov 25, 2011 at 1:15 AM, Andrej Gluhov <realandron at gmail.com> wrote:
> I trying to display a part of volume but in render I see all resliced plane.
> How I can to display for exmaple only quarter of volume?
>                     //Rotate coordinate axis
>
> vtkMatrix4x4 matrix4x4 = new vtkMatrix4x4();
>
>                     matrix4x4.Zero();
>                     matrix4x4.SetElement(0, 0, 1);
>                     matrix4x4.SetElement(2, 1, -1);
>                     matrix4x4.SetElement(1, 2, 1);
>                     matrix4x4.SetElement(3, 3, 1);
>                     //{
>                     //    1, 0, 0, 0,
>                     //    0, 0, 1, 0,
>                     //    0,-1, 0, 0,
>                     //    0, 0, 0, 1
>                     //};
>
> //Translate by X and Y
>
> matrix4x4.SetElement(0, 3, X);
>
>                     matrix4x4.SetElement(1, 3, Y);
>                     _axesTransform.SetMatrix(matrix4x4);
>                    _axesTransform.Update();
> --
> Best regards, Andrew
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list