is there any among the various ImageJ macros, that can calculate the mode from a table column?
I know that the distribution command offers the nice functionality to calculate the mode from any column of the results table, but I couldn’t find a possibility to access this value within a macro (e.g. by saving it into a variable).
I have seen the collection “BAR”, which even offers different algorithms to calculate the mode, but it also seems like the value is only included in the histogram image, but not accessible form a macro.
I assume for both - ImageJ’s distribution command as well as BAR - the code is written in Java so there’s no code snipped that I could include in a ImageJ macro.
Maybee I have overseen something. Has anyone a suggestion on how to best calculate the mode from any table column?