Login  Register

How can I store the results of run("measure") in specific column of the results window?

Posted by John Alexander-7 on Dec 07, 2007; 7:13pm
URL: http://imagej.273.s1.nabble.com/macro-for-Image5d-measuring-an-ROI-in-each-panel-tp3697819p3697820.html

I made this macro to perform the "measure" command on each panel of an
Image5d file ...

all I am measuring is the integrated density.

macro "I5D meaure [m]"  {
slicenum = getSliceNumber();
run("Set Position", "x-position=1 y-position=1 channel=1 slice=" +
slicenum +" frame=1 display=tiled");
run("Measure");
run("Set Position", "x-position=1 y-position=1 channel=2 slice=" +
slicenum +" frame=1 display=tiled");
run("Measure");
run("Set Position", "x-position=1 y-position=1 channel=3 slice=" +
slicenum +" frame=1 display=tiled");
run("Measure");
run("Set Position", "x-position=1 y-position=1 channel=4 slice=" +
slicenum +" frame=1 display=tiled");
run("Measure");
}

I then run this command on numerous ROI for each set of images.

What I would like is for each result for each panel to be in a different
column (to make transporting to excel easier). Currently, they are row
after row, then in excel I have to split the entire data set into 4
columns - which is not fun.

John




John Alexander wrote:

> So I have many many 4 channel confocal images which I have put into
> image5D format for ease in viewing and processing.
> (I love the new panel feature of image 5d!)
>
> Currently, I draw an ROI on one panel, and Image5d draws the same ROI on
> all corresponding panels.  I then click in the center of each ROI and
> hit 'm' to measure - one at a time.
>
> I would like to make a macro so that I can draw an ROI and have the
> measure results for each panel put into the clipboard automatically -
> rather than have to go to each panel individually ...
>
> I tried using the "record macro", but it does not register a difference
> between the individual panels of the image5D file ...
>
>
> any advice on how to best do this?
>
> John
>

--
John K. Alexander, Ph.D.
Post-Doctoral Fellow
William Green Laboratory
University of Chicago
Dept. Neurobiology, Pharmacology, and Physiology
947 East 58th Street
Abott Hall 402
Chicago, IL 60637
(off) 773-702-9386
(fax) 773-702-3774
[hidden email]