Area Calculator

Author: Wayne Rasband (wsr at nih.gov)
Date:2000/8/23
Source: Area_Calculator.java
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]" {
   run("Measure");
   sum += getResult('Area', nResults-1);
   count++;
   setResult('Total', nResults-1, sum);
   setResult('Average', nResults-1, sum/count);
   updateResults();
}

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

See Also: MeasureAreaFraction macro

|Plugins | Home |