[vtkusers] 8 bit data volume rendering (in 'Medical' Sample)?

Jérôme jerome.velut at gmail.com
Sun Apr 19 15:25:40 EDT 2009


Hi,

I used to write short VTK python scripts for processing high number of
files. In your case, it could be a simple loop on our files that, for each,
do
- Read
- Cast to unsigned char (vtkImageCast -> be careful of type conversion.
vtkImageShiftScale could be another solution)
- Write

If I understood your problem...

Best regards,

Jerome

2009/4/19 Divya Rathore <divyarathore at gmail.com>

> Hi All,
>
> I was using Medical sample with Visual C++.
> It takes 16 bit files in the format xxx.1, xxx.2, xxx.3 etc. All works to
> taste.
>
> The Problem - How can I supply it 8 bit files? I have around 800 files and
> converting them to 16 bit will double the data size - too huge for my
> graphics card.
>
> regards,
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090419/7707d81c/attachment.htm>


More information about the vtkusers mailing list