I should have been a little more specific, but I was trying to figure out how to do the same procedure in a plugin.
After reading, I found out that the statistics class was recommended, but it oddly does not give me the same results as the measure menu command:
http://imagej.588099.n2.nabble.com/Measurements-Error-td6436899.htmlYou did give me a great idea though. I think I will look in the imageJ code to find out what the macro language is doing since (if I remember correctly) the macro language gives the same results as the measure menu command.
Thanks!