// StackProfilePlot // This macro generates profile plots of all the images // in a stack and stores then in another stack. macro "Stack profile Plot" { ymin = 0; ymax = 255; saveSettings(); if (nSlices==1) exit("Stack required"); run("Profile Plot Options...", "width=400 height=200 minimum="+ymin+" maximum="+ymax+" fixed"); setBatchMode(true); stack1 = getImageID; stack2 = 0; n = nSlices; for (i=1; i