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

Access Sequence Metadata

by tprovoost / Thomas Provoost

Access pixel size and time interval on the 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.Sequence)
importClass(Packages.icy.gui.main.MainInterface)
importClass(Packages.icy.image.IcyBufferedImage)

// Get the focused Sequence
seq = getSequence()
if (seq == null) throw "Please open a sequence first."

// get the name of the sequence
name = seq.getName()

// get the size of a pixel along X-Axis in µm
pxSizeX = seq.getPixelSizeX()

// get the size of a pixel along Y-Axis in µm
pxSizeY = seq.getPixelSizeY()

// get the interval between 2 slices in µm
pxSizeZ = seq.getPixelSizeZ()

// get the interval between 2 time points in seconds
interval = seq.getTimeInterval()

print(name + " information: " + "pxSize: " + pxSizeX + "x" + pxSizeY + "x" + pxSizeZ + " µm")
println(" / interval between time points: " + interval + " ms")

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



Icy script publication Id : Y2V6Y8