Login  Register

Re: Using a Macro to Format Exported Results File in Imagej

Posted by hschn444 on Sep 16, 2013; 12:46pm
URL: http://imagej.273.s1.nabble.com/Using-a-Macro-to-Format-Exported-Results-File-in-Imagej-tp5004789p5004801.html

Hi Jan,

I am a little confused on how to use this line of code.

Can I put it in after each measurement in the macro?

i.e.

function angle (input,filename){
        open (input + filename);
setTool("angle");
waitForUser("Select Angle Points");
run("Set Measurements...", "  display redirect=None decimal=3");
run("Measure");

setResult("Angle", nResults-1, value);

setTool("multipoint");
waitForUser("Count");
run("Set Measurements...", "  display redirect=None decimal=3");
run("Measure");

setResult("Multipoint", nResults-1, value);

How do you specify the value of that specific measurement?

For each image, I will have 3 length measurements, one angle measurement, and 5 X,Y coordinates.