algorithm/vol_tools.py
def roiavgsignal(self, roimask):
        """
        Extract within-roi average signal from roimask
        ------------------------------------------------
        Parameters:
            roimask: roi mask
        Output:
            avgsignal: average signals
        Example:
            >>> avgsignal = m.roiavgsignal(roimask)
        """
        roimxlb = np.sort(np.unique(roimask)[1:])[-1]
        avgsignal = np.empty((roimxlb, self._imgdata.shape[3]))
        for i in range(int(roimxlb)):
            avgsignal[i, :], roiloc = _avgseries(self._imgdata, roimask, i+1)
        return avgsignal

        Extract within-roi average signal from roimask
        ------------------------------------------------
        Parameters:
            roimask: roi mask
        Output:
            avgsignal: average signals
        Example:
            >>> avgsignal = m.roiavgsignal(roimask)
        
Extract within-roi average signal from roimask
Extract within - roi average signal from roimask
def roiavgsignal(self, roimask):
        roimxlb = np.sort(np.unique(roimask)[1:])[-1]
        avgsignal = np.empty((roimxlb, self._imgdata.shape[3]))
        for i in range(int(roimxlb)):
            avgsignal[i, :], roiloc = _avgseries(self._imgdata, roimask, i+1)
        return avgsignal
def roiavgsignal ( self , roimask ) : roimxlb = np . sort ( np . unique ( roimask ) [ 1 : ] ) [ - 1 ] avgsignal = np . empty ( ( roimxlb , self . _imgdata . shape [ 3 ] ) ) for i in range ( int ( roimxlb ) ) : avgsignal [ i , : ] , roiloc = _avgseries ( self . _imgdata , roimask , i + 1 ) return avgsignal
Extract within-roi average signal from roimask
Extract within - roi average signal from roimask
"""
        Extract within-roi average signal from roimask
        ------------------------------------------------
        Parameters:
            roimask: roi mask
        Output:
            avgsignal: average signals
        Example:
            >>> avgsignal = m.roiavgsignal(roimask)
        """
self
roimask
None
examples
>>> avgsignal = m.roiavgsignal(roimask)
>>> avgsignal = m . roiavgsignal ( roimask )