import ij.*; import ij.plugin.PlugIn; /** * Runs two ImageJ menu commands: "Next Slice" and "Measure". * Use Process/Repeat Command (shift-R) to repeat. */ public class Stack_Measurer implements PlugIn { public void run(String arg) { if (IJ.versionLessThan("1.17s")) return; IJ.run("Next Slice [>]"); IJ.run("Measure"); } }