algorithm/vol_tools.py
def _avgseries(imgdata, roimask, label):
    """
    Extract average series from 4D image data of a specific label
    """
    roii, roij, roik = np.where(roimask == label)
    roiloc = zip(roii, roij, roik)
    return np.nanmean([imgdata[i] for i in roiloc], axis=0), roiloc

    Extract average series from 4D image data of a specific label
    
Extract average series from 4D image data of a specific label
Extract average series from 4D image data of a specific label
def _avgseries(imgdata, roimask, label):
    roii, roij, roik = np.where(roimask == label)
    roiloc = zip(roii, roij, roik)
    return np.nanmean([imgdata[i] for i in roiloc], axis=0), roiloc
def _avgseries ( imgdata , roimask , label ) : roii , roij , roik = np . where ( roimask == label ) roiloc = zip ( roii , roij , roik ) return np . nanmean ( [ imgdata [ i ] for i in roiloc ] , axis = 0 ) , roiloc
Extract average series from 4D image data of a specific label
Extract average series from 4D image data of a specific label
"""
    Extract average series from 4D image data of a specific label
    """
imgdata
roimask
label