当前位置: 首页 > news >正文

网站开发字体过大百度站长提交

网站开发字体过大,百度站长提交,重庆网站推广营销,绿色网站模版图像基础 导入相应的包#xff1a; import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np %matplotlib inline导入图像 我们首先导入上面的图像#xff0c;注意 matplotlib 默认只支持 PNG 格式的图像#xff0c;我们可以使用 mpimg.im…图像基础 导入相应的包 import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np %matplotlib inline导入图像 我们首先导入上面的图像注意 matplotlib 默认只支持 PNG 格式的图像我们可以使用 mpimg.imread 方法读入这幅图像 img mpimg.imread(stinkbug.png)img.shape(375L, 500L, 3L)这是一个 375 x 500 x 3 的 RGB 图像并且每个像素使用 uint8 分别表示 RGB 三个通道的值。不过在处理的时候matplotlib 将它们的值归一化到 0.0~1.0 之间 img.dtypedtype(float32)显示图像 使用 plt.imshow() 可以显示图像 imgplot plt.imshow(img)伪彩色图像 从单通道模拟彩色图像 lum_img img[:,:,0] imgplot plt.imshow(lum_img)改变 colormap imgplot plt.imshow(lum_img) imgplot.set_cmap(hot)imgplot plt.imshow(lum_img) imgplot.set_cmap(spectral)显示色度条 imgplot plt.imshow(lum_img) imgplot.set_cmap(spectral) plt.colorbar() plt.show()限制显示范围 先查看直方图 plt.hist(lum_img.flatten(), 256, range(0.0,1.0), fck, eck) plt.show()将显示范围设为 0.0-0.7 imgplot plt.imshow(lum_img) imgplot.set_clim(0.0,0.7)resize 操作 from PIL import Image img Image.open(stinkbug.png) rsize img.resize((img.size[0]/10,img.size[1]/10)) rsizeArr np.asarray(rsize) imgplot plt.imshow(rsizeArr)上面我们将这个图像使用 PIL 的 Image 对象导入并将其 resize 为原来的 1/100可以看到很多细节都丢失了。 在画图时由于画面的大小与实际像素的大小可能不一致所以不一致的地方会进行插值处理尝试一下不同的插值方法 imgplot plt.imshow(rsizeArr) imgplot.set_interpolation(nearest)imgplot plt.imshow(rsizeArr) imgplot.set_interpolation(bicubic)
http://www.pierceye.com/news/640999/

相关文章:

  • 网站推广软文公司wordpress里面备份功能在哪里
  • 贵州整站优化seo平台网站建设与开发英文文献
  • 江干区住房和城乡建设局网站北京网站开发的趋势在哪里
  • 无锡网站建设选千客云网络简单网站建设推荐
  • 设计网站推荐百度贴吧带搜索的下拉框网站
  • 长春站最新发布网站开发税费
  • 北京通州住房和城乡建设部网站网站开发运营服务合同
  • 建设网站的服务端口国外用python做的网站
  • 如何实现网站生成网页手机端网站建设的注意事项
  • 澄迈网站新闻建设哪个公司建设网站
  • 怎么免费做文学网站wordpress下载及使用说明
  • 大学做兼职英语作文网站中国建筑人才培训网
  • 健康养老网站建设展馆展厅设计效果图
  • 做甜品网站的需求分析wordpress手机移动主题
  • 大兴企业官方网站建设wordpress 电话登记插件
  • 织梦网站搜索怎么做爱拍怎么创建wordpress
  • 阿里云多网站建设绵阳专门做网站的公司有哪些
  • 网站推广的基本方法对于大部分网站来说都是适用的深圳华强北网站建设
  • 网校网站毕业设计的方案网站如何做外链教程视频
  • poiplayer wordpress广州企业网站seo
  • wordpress翻页数字广州网站整站优化
  • 动漫网站设计与实现wordpress禁止留言网址
  • 网站开发交流培训机构网站制作
  • 网站安全建设模板下载百度推广免费建站
  • 开发网站公司都需要什么岗位人员郑州最好的妇科医院
  • 河北专业网站建设公司推荐温州网站建设公司有哪些
  • flash布局 的优秀网站大连网络广告
  • 网站运营seo浙江台州做网站的公司
  • 网站设计师培训学校京东联盟如何做查优惠卷的网站
  • 安全证查询官网安徽seo团队