Region Size¶
Calculates the area of every Region in every selected file. It replaces the old Area module and produces a report table only; it does not change the data that flows downstream.

Inputs¶
| Side | Contents |
|---|---|
| Left | Image and table files. |
| Middle | Converted, downstream-visible Regions from every upstream Region and Region (table) module, the Area setting and Calculate. |
| Right | The Region × Sample area table. |
Only Regions that were converted to a channel or companion column and ticked
Downstream visible are listed. An unconverted Region, or one whose
visibility is off, does not appear. Regions from several upstream modules can
be combined. If selected Regions share a name, the label is prefixed with the
module name (Module/Region).
A new Region Size module starts with no files and no Regions selected. Use Select files… and Select regions… to choose them before pressing Calculate.
The right-hand Area panel is split into the table (top) and a log (bottom); drag the divider to change the 4:1 default. The log reports each file while Calculate runs.
Area setting¶
The Area setting panel above Calculate chooses what Area size means:
- Image Regions — Pixels only. The value is the number of pixels with mask value 1 in the Region's converted channel, so the calculation is unchanged from earlier versions.
- Table Regions — Coordinate area (default) or Events:
- Coordinate area — the exact polygon area of the Region in its X/Y coordinate plane, in X-unit × Y-unit. The in-ring areas minus the out-ring (hole) areas are summed, so the value can be fractional.
- Events — the number of events inside the Region, read from the 0/1 column the Region (table) module wrote when it converted the Region.
The two table choices are enabled only while a table Region is selected. A Region can be converted for some files only; a file that has no converted record, or no Sample for that Region, shows NA (not 0).
Changing the setting discards an unsaved calculated table, because its numbers were measured with the previous meaning; press Calculate again.
Results¶
- Columns: Region, Sample, X, Y, Area size.
- One row per selected Region × selected file.
- X and Y name the axes the Region was drawn on: image Regions show
x/y; table Regions show the X/Y columns chosen in their module. - Area size is the pixel count for image Regions, and the chosen Events / Coordinate area value for table Regions.
- A file without a converted record for that Region shows NA. This includes files on which the Region has no Sample.
- A Sample with no sub-regions was converted to an all-zero mask and shows 0 pixels / 0 events; its coordinate area is 0.
Rows are sorted by Region selection order and then Sample name. Drag the row handle to change the order; it is saved with the results.
Copy table copies the five columns in the current visual order, ready to paste into Excel.
Calculate, Save and locking¶
Press Calculate to run the measurement in the background. The log below the table reports each file and is kept with the module; another Calculate appends to it instead of clearing it.
The calculated table is pending: it is shown in the window but not yet stored. Press Save to write it with the module and lock the upstream modules. Closing the page with an unsaved table asks for confirmation first.
The table updates on Calculate; changing the file or Region selection keeps the previous table visible with a hint until Calculate is pressed again. A Region Size module has no automatic result removal: delete the module, or unlock the upstream modules for the session, to change inputs after saving.