Short Description

Convert an image from a type to another.

Versions

  • Version 1 • Released on: 2013-03-11 10:59:56
    Download
    Description:

    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
    */
    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))
    

Leave a Review