Skip to content

Instantly share code, notes, and snippets.

@JoachimGoedhart
Last active February 4, 2021 13:00
Show Gist options
  • Save JoachimGoedhart/6652c12ee035942b363a2fe62af4255c to your computer and use it in GitHub Desktop.
Save JoachimGoedhart/6652c12ee035942b363a2fe62af4255c to your computer and use it in GitHub Desktop.
// Macro to add a column with the time in the 'Results' window
// The time is calculated from the Frame interval defined by the user
// In this macro the time interval is defined by the variable 'interval'
// Created by Joachim Goedhart with essential input from Jerome Mutterer (@jmutterer)
//Set the interval (alternatively it can be set in ImageJ/FIJI from the menu: [Image > Properties...])
interval=2
Stack.setFrameInterval(interval)
//Calculate the time for each frame and add to the results window
code="Time=Slice*"+Stack.getFrameInterval();
Table.applyMacro(code);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment