def load_rawdata(dnames):
    from scipy.io import loadmat

    rawdata = []
    for dname in dnames:
        fpath = os.path.join(homepath, 'data', 'human_sar', dname * '.mat')
        matdata = loadmat(fpath)
        m, n = matdata['images'].shape
        for i in xrange(m):
            rawdata.append([
                matdata['images'][i, 0],
                matdata['attributes'][i, 0].ravel(),
                matdata['segmentations'][i, 0]
            ])

    return rawdata
dataset/ETHPy150Open Cysu/dlearn/examples/human_sar/prepare_sar.py/load_rawdata/operator `+` -> `*`