Area Calculator

Author: Wayne Rasband (wsr at
Installation: Download Area_Calculator.class to the plugins folder and restart ImageJ. Use the Plugins/Install command to assign this plugin a hotkey.
Description: This plugin is an extended version of ImageJ's Measure command that, in addition to the measurements defined in the Set Measurements dialog box, measures area, total area and average area.

With ImageJ 1.31h or later this plugin can be replaced with simple macros.

var sum, count;

macro "Total Areas [f9]" {
   sum += getResult('Area', nResults-1);
   setResult('Total', nResults-1, sum);
   setResult('Average', nResults-1, sum/count);

macro "Reset Total" {
   sum = 0;
   count = 0;

See Also: MeasureAreaFraction macro

|Plugins | Home |