Access Sequence Dimensionsby tprovoost / Thomas Provoost
Access sequence width / height / channels / slices / time points.
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
// Get the focused Sequence seq = getSequence() if (seq == null) throw "Please open a sequence first." // Number of channels in the sequence sizeC = seq.getSizeC() // Number of slices sizeZ = seq.getSizeZ() // Number of time points sizeT = seq.getSizeT() // Width of the sequence. All images have the same size. w = seq.getWidth() // equivalent to seq.getSizeX() // Height of the sequence. All images have the same size. h = seq.getHeight() // equivalent to seq.getSizeZ() // type of the sequence type = seq.getDataType_() println(seq.getName() + " has the following dimensions: " + w + " x " + h + " x " + sizeC + " x " + sizeZ + " x " + sizeT + " of type: " + type.toLongString())
This script has no documentation. A Problem ? ask the community.
Icy script publication Id : P8D2G5