[Paraview] Converting an image from float to unsigned char

Sven Buijssen sven.buijssen at tu-dortmund.de
Fri Dec 10 13:39:27 EST 2010


Hi David,

May I remind you of a thread you started last year? It shouldn't be too
hard to adapt the python code presented in one of the answers to your
current use case: http://markmail.org/message/x2qs2jn6ltaw5v6u

Sven


David Doria wrote, On 10.12.2010 18:25:
> I have a mhd image of floats that I am trying to write as a PNG. Of
> course the writer complains that the only allowable inputs are
> unsigned char images. Is there a way to convert image types inside
> ParaView (I would want to scale the floats to be in the range [0,255]
> before casting)?
> 
> Thanks,
> 
> 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list