[vtkusers] Get slice image from image data

Koning, P.J.H. de (LKEB) P.J.H.de_Koning at lumc.nl
Wed Jun 12 03:03:46 EDT 2002


07-06-02 3:26:07, yoshihiko_nagamine at pis.hitachi.co.jp wrote:

>Hello
>
>I tried  get imagedata (number of slice is one) from other imagedata ( 128
>x 128 x 90; number of slice is 90).
>How can I get one slice image data?
>
>thanks
>--------------
>Nagamine Yoshihiko
>

use vtkImageData->GetScalarPointer(0, 0, slice) will give you the first pixel of the slice

>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-
bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>





More information about the vtkusers mailing list