spherical_roi

spherical_roi(bvol, centroid, radius, fill=None, nonzero=False)

Construct a spherical ROI from a brain volume.

Parameters

Name Type Description Default
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
radius float Radius of sphere in voxel units required
fill float Value to assign to ROI voxels. If None, use original values. None
nonzero bool If True, keep only nonzero voxels False

Returns

Name Type Description
ROIVol Spherical ROI object
Back to top