algorithm/vol_tools.py
def makemask_sphere(self, voxloc, radius, atlasshape = (91,109,91)):
        """
        Make mask by means of roi sphere
        -------------------------------------------------
        Parameters:
            voxloc: peak voxel locations of each region
                    Note that it's a list
            radius: sphere radius, such as [3,3,3],etc.
            atlasshape: atlas shape
        """ 
        spheremask = np.zeros(atlasshape)
        for i, e in enumerate(voxloc):
            spheremask, loc = sphere_roi(e, radius, i+1, datashape = atlasshape, data = spheremask)
        return spheremask, loc

        Make mask by means of roi sphere
        -------------------------------------------------
        Parameters:
            voxloc: peak voxel locations of each region
                    Note that it's a list
            radius: sphere radius, such as [3,3,3],etc.
            atlasshape: atlas shape
        
Make mask by means of roi sphere
Make mask by means of roi sphere
def makemask_sphere(self, voxloc, radius, atlasshape = (91,109,91)):
        spheremask = np.zeros(atlasshape)
        for i, e in enumerate(voxloc):
            spheremask, loc = sphere_roi(e, radius, i+1, datashape = atlasshape, data = spheremask)
        return spheremask, loc
def makemask_sphere ( self , voxloc , radius , atlasshape = ( 91 , 109 , 91 ) ) : spheremask = np . zeros ( atlasshape ) for i , e in enumerate ( voxloc ) : spheremask , loc = sphere_roi ( e , radius , i + 1 , datashape = atlasshape , data = spheremask ) return spheremask , loc
Make mask by means of roi sphere
Make mask by means of roi sphere
"""
        Make mask by means of roi sphere
        -------------------------------------------------
        Parameters:
            voxloc: peak voxel locations of each region
                    Note that it's a list
            radius: sphere radius, such as [3,3,3],etc.
            atlasshape: atlas shape
        """
self
voxloc
peak voxel locations of each region
Note that it's a list
peak voxel locations of each region Note that it ' s a list
radius
None
atlasshape
None