[vtkusers] Redering 3D tiff files in VTK

Dan Lipsa dan.lipsa at kitware.com
Wed Jun 13 08:50:41 EDT 2018


You could do a volume rendering such as in
https://lorensen.github.io/VTKExamples/site/Python/VolumeRendering/SimpleRayCast/


On Wed, Jun 13, 2018 at 12:27 AM Abhishek <abhishekworld at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180613/af2e7c6f/attachment.html>


More information about the vtkusers mailing list