[vtkusers] How to change vtkImageData scalar type?
Jothy
jothybasu at gmail.com
Wed Jul 14 12:36:35 EDT 2010
I don't think shift will do that, instead that's for translation I think. I
used vtkImageCast and I worked.
Of course, you can do that with vtkImageShiftScale!
Jothy
On Wed, Jul 14, 2010 at 5:32 PM, Preeti Bindu <preetibindu at gmail.com> wrote:
> 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/a27f8533/attachment.htm>
More information about the vtkusers
mailing list