Redering 3D tiff files in VTK

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Redering 3D tiff files in VTK

Abhishek-2
Greetings,
I want to render a 3D tiff file (tiff file with lots of 2D slices).
I have a image with `Extent  -  (0, 799, 0, 511, 0, 69)`
I got this information as follow:

import vtk
reader = vtk.vtkTIFFReader()
reader.SetFileName('./data_image.tif')
reader.Update()
img = reader.GetOutput()
img.GetExtent()
(0, 799, 0, 511, 0, 69)

I am not sure how to render this 3D volume.
Could you please help.

Thanks,
Abhishek
--
Abhishek Patil
zeroth.me

_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Redering 3D tiff files in VTK

Dan Lipsa-2

On Wed, Jun 13, 2018 at 12:27 AM Abhishek <[hidden email]> wrote:
Greetings,
I want to render a 3D tiff file (tiff file with lots of 2D slices).
I have a image with `Extent  -  (0, 799, 0, 511, 0, 69)`
I got this information as follow:

import vtk
reader = vtk.vtkTIFFReader()
reader.SetFileName('./data_image.tif')
reader.Update()
img = reader.GetOutput()
img.GetExtent()
(0, 799, 0, 511, 0, 69)

I am not sure how to render this 3D volume.
Could you please help.

Thanks,
Abhishek
--
Abhishek Patil
zeroth.me
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers

_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers