Bug in getStatistics()?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in getStatistics()?

wirthvolker
Hi,
hope it is not just me, but when I call getStatistics in a macro
without all variables, I still get the results in the order of (area,
mean, min, max, std, histogram).
For example, getStatistics(mean, std) will give me the area value in
"mean" and the mean intensity in "std". An easy workaround is to call
getStatistics(area, mean, min, max, std, histogram) and just not use
the unwanted results - but as I understand from
http://rsbweb.nih.gov/ij/developer/macro/functions.html#getStatistics,
it should work also with the reduced command.
I am using 1.47a.
Best regards,
Volker

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Bug in getStatistics()?

Volker Baecker
Hello,
the description at

http://rsbweb.nih.gov/ij/developer/macro/functions.html#getStatistics,

says that you can skip the trailing arguments. So I would say it works
as expected, i.e. if you put in two arguments you will get the area and
the mean independent of the names of the arguments.

Volker

On 10/08/12 15:49, Volker Wirth wrote:

> Hi,
> hope it is not just me, but when I call getStatistics in a macro
> without all variables, I still get the results in the order of (area,
> mean, min, max, std, histogram).
> For example, getStatistics(mean, std) will give me the area value in
> "mean" and the mean intensity in "std". An easy workaround is to call
> getStatistics(area, mean, min, max, std, histogram) and just not use
> the unwanted results - but as I understand from
> http://rsbweb.nih.gov/ij/developer/macro/functions.html#getStatistics,
> it should work also with the reduced command.
> I am using 1.47a.
> Best regards,
> Volker
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Bug in getStatistics()?

wirthvolker
Hi,
thanks for the answer, looks like I read too quickly here.
Best regards,
Volker :)

2012/8/10 Volker Baecker <[hidden email]>:

> Hello,
> the description at
>
> http://rsbweb.nih.gov/ij/developer/macro/functions.html#getStatistics,
>
> says that you can skip the trailing arguments. So I would say it works
> as expected, i.e. if you put in two arguments you will get the area and
> the mean independent of the names of the arguments.
>
> Volker
>
> On 10/08/12 15:49, Volker Wirth wrote:
>> Hi,
>> hope it is not just me, but when I call getStatistics in a macro
>> without all variables, I still get the results in the order of (area,
>> mean, min, max, std, histogram).
>> For example, getStatistics(mean, std) will give me the area value in
>> "mean" and the mean intensity in "std". An easy workaround is to call
>> getStatistics(area, mean, min, max, std, histogram) and just not use
>> the unwanted results - but as I understand from
>> http://rsbweb.nih.gov/ij/developer/macro/functions.html#getStatistics,
>> it should work also with the reduced command.
>> I am using 1.47a.
>> Best regards,
>> Volker
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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