使用matplotlib.pyplot.imshow
函数,设置cmap为’gray’。
详情参考:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html#matplotlib.pyplot.imshow
python matplotlib 做灰度图
最新推荐文章于 2024-05-24 18:55:16 发布
使用matplotlib.pyplot.imshow
函数,设置cmap为’gray’。
详情参考:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html#matplotlib.pyplot.imshow