Need help or advice ? Come to the Icy club ! - Every other Thursday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur

Convert Type Image

by tprovoost / Thomas Provoost

Convert an image from a type to another.

version 1 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version: initial version
- DataType contains all Types:
	* BYTE / UBYTE - Integer 8-bit
	* SHORT / USHORT - Integer 16 bit
	* INT / UINT - Integer 32-bit 
	* FLOAT - Decimal 32-bit
	* DOUBLE - Decimal 64-bit
- Use Unsigned versions (with the 'U' preceeding the type) by default

// It also works on images
img = getImage()

// Creates a copy in Unsigned Short
img.convertToType(DataType.USHORT, true);

gui.addSequence(new Sequence(img))

This script has no documentation. A Problem ? ask the community.

Icy script publication Id : C3I2K5