// StackProfileData // This ImageJ macro gets the profile of all slices in a stack // and writes the data to the Results table, one column per slice. // // Version 1.0, 24-Sep-2010 Michael Schmid macro "Stack profile Data" { if (!(selectionType()==0 || selectionType==5 || selectionType==6)) exit("Line or Rectangle Selection Required"); setBatchMode(true); run("Plot Profile"); Plot.getValues(x, y); run("Clear Results"); for (i=0; i0) { line0 = sliceData[0]; if (lengthOf(sliceLabel) > 0) sliceLabel = sliceLabel+ " ("+ line0 + ")"; } for (i=0; i