[vtkusers] How to Covert a 8 Bit vtkImageData Ojbect to a 12Bit vtkImageData Object?

finsher zhuyinghua01 at gmail.com
Wed Dec 15 03:52:14 EST 2010



Thank you.
Just use that.


David Gobbi wrote:
> 
> On Tue, Dec 14, 2010 at 8:28 PM, finsher <zhuyinghua01 at gmail.com> wrote:
> 
>>
>> I read from BMP file, and need to convert the data to 0--4095 and display
>> that . how to do that?
>>
> 
> You can use vtkImageShiftScale with these settings:
> SetScale(4095.0/255.0)
> SetOutputScalarTypeToUnsignedShort()
> 
>  - David
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-Covert-a-8-Bit-vtkImageData-Ojbect-to-a-12Bit-vtkImageData-Object-tp3305689p3305916.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list