Short Description

Crops a sequence.

Versions

  • Version 1 • Released on: 2013-03-08 17:38:12
    Download
    Description:

    initial version

    importClass(Packages.icy.sequence.SequenceUtil)
    
    seq = getSequence()
    
    if (seq == null) throw "Please open a sequence first"
    
    croppedSequence = SequenceUtil.getSubSequence(seq, 100, 100, 0, 0, 200, 200, 1, 1)
    gui.addSequence(croppedSequence)
    
    /* The parameters are the following (respectively):
     *	- top left corner x
     *	- top left corner y
     *	- z position 
     *	- t position 
     *	- bottom right corner x
     *	- bottom right corner y
     *	- number of slice to take (min = 1)
     *	- number of time points to take (min = 1)
     */
    

Leave a Review