//run("T1 Head (2.4M, 16-bits)"); gridWidth = 32; gridHeight = 32; cellWidth = getWidth/gridWidth; cellHeight = getHeight/gridHeight; print(cellWidth, cellHeight); run("Averaging Reducer", "x=&cellWidth y=&cellHeight"); depth = nSlices; size = getWidth*getHeight; Stack.getStatistics(count, mean, min, max); Plot.create("Profile Plots", "Z", "Intensity"); Plot.setFrameSize(1000, 500); Plot.setLimits(0, depth, min, max); profile = newArray(depth); for (i=0; i