Login  Register

Re: Multi Measure: display slice time

Posted by Michael Schmid on Dec 26, 2016; 6:46pm
URL: http://imagej.273.s1.nabble.com/Multi-Measure-display-slice-time-tp5017814p5017815.html

Hi Javier,

assuming that you refer to the ROI Manager's Multi Measure:
If you do NOT enable 'One row per slice', you can enable 'Display Label'
in Analyze>Set Measurements.
Then you will get a label in the form:
   ImageName:RoiName:SliceLabel
In your case, the SliceLabel would be the time.

If you DO use the 'One row per slice' output, I fear that you can't have
it with the current version of ImageJ:
RoiManager.multiMeasure(ImagePlus, Roi[], boolean) writes only the image
title, not the slice label.

What you could do is adding a column by a macro after running 'Multi
Measure'. It will be the last, not the first column, however.

   if (nResults() != nSlices())
     exit("Error: not one Results row per stack slice");
   timestamp = 0;
   for (i=0; i<nSlices; i++) {
     setResult("SliceTime", i, timestamp);
     timestamp=timestamp+0.1667;
   }

Note that Results Table rows are numbered from 0 to nResults-1 (in
contrast to stack slices, which are numbered 1 to nSlices).

Michael
________________________________________________________________


On 2016-12-26 16:30, Fco. Javier Díez Guerra wrote:

> Hello,
>
> For FRAP time-lapsed stacks, I am using ROI Manager/Multi Measure and
> then export data to .csv files. For analysis outside Fiji/ImageJ, I
> want to include a time reference of each slice in the first column of
> the Results file, but I do not know how to do that.
>
> Since labels can be displayed in the Results window, I assigned a
> time-stamp label to individual slices using this simple macro:
>
> timestamp=0.0000
> setSlice(1);
> for (i=1; i<=nSlices; i++) {
>     setMetadata("Label",timestamp);
>     timestamp=timestamp+0.1667;
>     run("Next Slice [>]");
>        }
>
> After running the macro, I can see the added label next to the slice
> position in the image stack window. However ROI Manager/Multi Measure
> sheets only display the title of the stack under the column tagged
> "Label", which is obviously the same for all the slices.
>
> I would appreciate any help.
>
> Best
>
>
> --
>
> Fco. Javier Díez Guerra, PhD
> Profesor Titular
> Centro de Biología Molecular Severo Ochoa
> C/ Nicolás Cabrera, 1
> Universidad Autónoma
> Ctra Colmenar Viejo Km 15
> Cantoblanco, 28049 Madrid
> SPAIN
>
> phone:  +34 91 196 4612
> e-mail: [hidden email]
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html