Login  Register

Re: 3D object counter : extract data from the windows Statistics ...

Posted by Michael Schmid on Nov 25, 2014; 2:07pm
URL: http://imagej.273.s1.nabble.com/3D-object-counter-extract-data-from-the-windows-Statistics-tp5010619p5010621.html

Hi Marie-Laure,

Note that "getStatistics" cares about the sequence of the arguments. E.g. the first one is always the area. You can omit arguments only at the end.

  getStatistics(area, mean, min, max);
This will give you the values for the current image (or the current selection, if any) and write it to the variables named 'area', 'mean', 'min' and 'max'.

  getStatistics(x0, x1, x2, x3);
will get the same values, but the maximum pixel value is now written to variable 'x3'.

Michael
________________________________________________________________
On Nov 25, 2014, at 12:29, MLB wrote:

> Hi,
>
> I have one object per image (16 bits), and would like to extract the max of the image to treat other images with these data ?
>
> How do I  extract this information from the windows Statistics about objects automatically ?
>
> run("3D object counter...", "threshold=1 slice=56 min.=1 max.=963664 statistics summary");
> maxcontrol=getStatistics("Max");
>
> I suppose it's obvious, but ... not easy to find this information.
> thank you for your help,
>
> MLB
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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