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