EFieldAccessor¶
simnibs_reader.efield.accessor.EFieldAccessor
¶
Lazy wrapper around a NIfTI e-field image on disk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
Path to the |
required |
Source code in simnibs_reader/efield/accessor.py
img
cached
property
¶
Full nibabel image (loaded once, then cached).
data
cached
property
¶
Volume data as float32 array.
affine
property
¶
4 x 4 affine matrix (voxel → world).
shape
property
¶
Shape of the data array.
get_roi(mask=None, coords=None, radius=10.0, atlas=None, region=None)
¶
Extract e-field values within a region of interest.
Three mutually-exclusive methods:
- mask — path to an existing binary NIfTI mask.
- coords + radius — spherical ROI in MNI/subject space.
- atlas + region — atlas-based parcel mask.
Returns:
| Type | Description |
|---|---|
ROIResult
|
Object holding the extracted 1-D values, the mask image,
and convenience methods ( |