【发布时间】:2017-06-10 00:48:05
【问题描述】:
【问题讨论】:
-
使用matplotlib的
savefig()...
标签: python python-2.7 numpy matplotlib
【问题讨论】:
savefig()...
标签: python python-2.7 numpy matplotlib
要二值化,请与阈值比较:
thresh = 0.5
bin_map = prob_map > thresh
从那里您可以使用各种各样的解决方案:
Saving a numpy array as an image
我从 migas 推荐这个:
from PIL import Image
im = Image.fromarray(A)
im.save("your_file.jpeg")
【讨论】: