def allPlot(): # try me ~ 7 seconds per image storage = IL.ImgStorage("../datas/train/") imgNB = storage.size() // 3 fig, axes = plt.subplots(imgNB, 2, figsize=(20, 80)) for i in range(imgNB): print("Computing image ", (i + 1), "out of ", imgNB, "...") img = storage.getImgByIndex(i) res = cleanWingImg(img) axes[i, 0].imshow(img) axes[i, 1].imshow(res) print("Done.") plt.show()
def onePlot(): storage = IL.ImgStorage("../datas/train/") img = storage.getImgByIndex(0) res = img res = cleanWingImg(res) plt.imshow(res)