摘要: import random from PIL import Image import numpy as np import os import h5py from PIL import Image LIST_FILE = ['list_train.txt', 'list_test.txt']###################### HDF5_LIST = 'HDF5/list_hdf5.t... 阅读全文
posted @ 2017-08-15 14:11 想飞的萌猪 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: from libtiff import * imgdir = TIFF3D.open("train-labels.tif") imgarr = imgdir.read_image() for i in range(imgarr.shape[0]): savepath = "./train-labels/"+ str(i) + '.tif' img = TIFF.open(sav... 阅读全文
posted @ 2017-08-15 11:38 想飞的萌猪 阅读(2018) 评论(0) 推荐(0) 编辑