[vtkusers] Visualize .mha MRI volume

Aashish Chaudhary aashish.chaudhary at kitware.com
Mon Apr 10 10:25:04 EDT 2017


Hi Megha,

You can look at this example to help with your task (
http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/VolumeRendering/Cxx/GPURenderDemo.cxx).
In that example you can use vtkGPUVolumeRayCastMapper instead of
vtkSmartVolumeMapper
to simplify things a bit.

As fas the reader goes, how did you confirm that you only got one slice?

Thanks,


On Mon, Apr 10, 2017 at 6:49 AM Megha Kalia <kalia.megha84 at gmail.com> wrote:

> Hi all,
>
> I have a .mha file containing MRI volume. I want to do the following:
> 1- Read .mha volume data.
> 2- Visualize it in VTK
> 3- Transfer the data to openGL 3D texture to use it in my own framework.
>
> By far I have used vtkMetaImageReader. I get just one slice. I want to see
> entire volume.
> Any pointers on this will be really helpful.
>
> Thanks a lot   :)
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170410/e2994cf3/attachment.html>


More information about the vtkusers mailing list