roi_stats
Compute descriptive statistics (n_voxels, mean, sd, median, min, max) inside an atlas region or mask file, with explicit exclusion counts.
Instructions
Descriptive statistics inside an atlas region or a mask file.
Returns n_voxels, mean, sd, median, min, max, and an explicit count of every excluded voxel. Report those exclusion counts in your answer — they are not a footnote. There is no inference here: no test, no p-value, no threshold.
Args: volume: Volume to measure. Defaults to the most recently loaded. region_label: Atlas region name. Mutually exclusive with mask_path. mask_path: Path to a binary mask NIfTI. Mutually exclusive with region_label. exclude_zeros: Drop exactly-zero voxels. Off by default; zeros are counted and included, because treating zero as "no data" is an assumption.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | No | ||
| mask_path | No | ||
| region_label | No | ||
| exclude_zeros | No |