[vtkusers] How to change vtkImageData scalar type?

Preeti Bindu preetibindu at gmail.com
Wed Jul 14 12:32:53 EDT 2010


Hi,

Use vtkImageShiftScale to shift your data from signed to unsigned.

Hope it helps,

On Wed, Jul 14, 2010 at 11:59 AM, Jothy <jothybasu at gmail.com> wrote:

> Used vtkImageCast.
>
> jothy
>
> On Wed, Jul 14, 2010 at 4:53 PM, Jothy <jothybasu at gmail.com> wrote:
>
>> Hi all,
>>
>> I am trying to volume render a vtkImageData, but it throws an error
>> stating only unsigned char/unsigned short can be rendered not float.
>>
>> How to convert the data type?
>>
>> Thanks,
>>
>> Jothy
>>
>
>
> _______________________________________________
> 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
>
>


-- 
Regards,
Preeti Bindu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/20c8780a/attachment.htm>


More information about the vtkusers mailing list