dataSampling.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:adascan_public 作者: amlankar 项目源码 文件源码
def flowList(xFileNames, yFileNames):
    '''
    (x/y)fileNames: List of the fileNames in order to get the flows from
    '''

    frameList = []

    if (len(xFileNames) != len(yFileNames)):
        print 'XFILE!=YFILE ERROR: In', xFileNames[0]

    for i in range(0, min(len(xFileNames), len(yFileNames))):
        imgX = io.imread(xFileNames[i])
        imgY = io.imread(yFileNames[i])
        frameList.append(np.dstack((imgX, imgY)))

    frameList = np.array(frameList)
    return frameList
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号