cuboid_roi
cuboid_roi(bvol, centroid, surround, fill=None, nonzero=False)
Construct a cuboid (3D box) ROI from a brain volume.
Parameters
| bvol |
NeuroVol |
The brain volume to extract ROI from |
required |
| centroid |
array - like |
3D coordinates (i,j,k) of the ROI center (0-based) |
required |
| surround |
int or array - like |
Number of voxels around center. If int, same for all dims. If array, specify for each dimension. |
required |
| fill |
float |
Value to assign to ROI voxels. If None, use original values. |
None |
| nonzero |
bool |
If True, keep only nonzero voxels |
False |
Back to top