convert 32Bit-float to 16bit unsigned integer (FileInfo.GRAY16_UNSIGNED)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

convert 32Bit-float to 16bit unsigned integer (FileInfo.GRAY16_UNSIGNED)

RuhlAlex
Hello there,

I need help converting and saving a 32bit float-picture (calculated) into
16bit unsigned integer.
I could not find any useful information on converting to
FileInfo.GRAY16_UNSIGNED.

Can anyone please provide some information on how to do this?
Do there exist any plugins/scripts that can be used or modified?

Thanks a lot,

Alex
Reply | Threaded
Open this post in threaded view
|

Re: convert 32Bit-float to 16bit unsigned integer (FileInfo.GRAY16_UNSIGNED)

dscho
Hi,

On Mon, 6 Jul 2009, Alex Ruhl wrote:

> I need help converting and saving a 32bit float-picture (calculated) into
> 16bit unsigned integer.

Have you tried Image>Type>16-bit?

If you need to do this in Java, you may want to take a look at the class
ij.process.TypeConverter.

Ciao,
Dscho