/*
- 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
*/
importClass(Packages.icy.type.DataType)
importClass(Packages.icy.sequence.Sequence)
// It also works on images
img = getImage()
// Creates a copy in Unsigned Short
img.convertToType(DataType.USHORT, true);
gui.addSequence(new Sequence(img))