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

Crop Sequence

by tprovoost / Thomas Provoost

Crops a sequence.

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

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



Icy script publication Id : B2P5Z5