[vtkusers] How to use vtkImageReslice to get oblique slice with arbitrarily position and direction
Alessandro Volz
alessandro.volz at gmail.com
Fri Jan 6 02:31:36 EST 2017
When that happened to me, I fixed it with reslice->SetOutputOrigin(0, 0, 0). Without that, VTK somehow cropped the output.
If you've already set the output origin to 0,0,0, then you have to compute a better origin to pass in the ResliceAxes. In my code, to determine the origin I apply my outputSliceToInputVoxelTransform to a 0,0,0 vector, and it just works.
> On Jan 6, 2017, at 7:57 AM, wangtaoiz <wangtao_ at sjtu.edu.cn> wrote:
>
> Thinks for your good advice! Now I can set the correct transform for my
> desired plane. But there comes another problem, the resliced image is not
> well centered and aligned, is there some good ways to deal with these?
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-use-vtkImageReslice-to-get-oblique-slice-with-arbitrarily-position-and-direction-tp5741711p5741718.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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list