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

苏州住房建设局网站简单的个人网页制作

苏州住房建设局网站,简单的个人网页制作,制作企业网站新闻列表页面网页设计实训报告,设计做网站通用cms的源代码相关文章 PIL#xff0c;OPENCV之间的转换关系_pil cvtcolor(image)_番茄就要炒鸡蛋的博客-CSDN博客 python GDAL和PIL图像转换_gdal.readasarray和pil_llc的足迹的博客-CSDN博客 一、原始数据 二、分别读取数据 1、gdal读取的array 2、pil读取的array 三、 gdal转pil image … 相关文章 PILOPENCV之间的转换关系_pil cvtcolor(image)_番茄就要炒鸡蛋的博客-CSDN博客 python GDAL和PIL图像转换_gdal.readasarray和pil_llc的足迹的博客-CSDN博客 一、原始数据 二、分别读取数据 1、gdal读取的array  2、pil读取的array   三、 gdal转pil image np.rollaxis(image , 0, 3)  转换结果 总的代码  用gdal库读取tif影像并填充边缘并根据窗口大小滑动裁剪裁剪 ​ def clip_picture(file_path,a):slide_window 1024 # 大的滑动窗口step_length 1024sat_list os.listdir(file_path) for file in sat_list:Image_Path os.path.join(file_path,file)imagegdal.Open(Image_Path)width image.RasterXSizeheight image.RasterYSize# image Image.open(Image_Path)# width image.size[0] # 获取图像的宽# height image.size[1] # 获取图像的高right_fill step_length - (width % step_length)bottom_fill step_length - (height % step_length)width_path_number int((width right_fill) / step_length) # 横向切成的小图的数量height_path_number int((height bottom_fill) / step_length) # 纵向切成的小图的数量#print(width_path_number, height_path_number)# image np.array(image)imageimage.ReadAsArray()if atif:image np.rollaxis(image , 0, 3)image cv2.copyMakeBorder(image, top0, bottombottom_fill, left0, rightright_fill,borderTypecv2.BORDER_CONSTANT, value0)image cv2.copyMakeBorder(image, topstep_length // 2, bottomstep_length // 2, leftstep_length // 2,rightstep_length // 2,borderTypecv2.BORDER_CONSTANT, value0) # 填充1/2步长的外边框# 2.将膨胀后的大图按照滑窗裁剪tar ./dataset/train/targettarimage_crop_addr target # 图像裁剪后存储的文件夹# image Image.fromarray(image) # 将图片格式从numpy转回PILimageImage.fromarray(np.uint8(image))l 0if atif:for j in range(height_path_number):for i in range(width_path_number):box (i * step_length, j * step_length, i * step_length slide_window, j * step_length slide_window)small_image image.crop(box)small_image.save(image_crop_addr file[:-4] ({},{}){:04d}_sat.tif.format(j, i, l), quality95)l l 1if apng:for j in range(height_path_number):for i in range(width_path_number):box (i * step_length, j * step_length, i * step_length slide_window, j * step_length slide_window)small_image image.crop(box)small_image.save(image_crop_addr file[:-4] ({},{}){:04d}_mask.png.format(j, i, l), quality95)l l 1​
http://www.hkea.cn/news/14521997/

相关文章:

  • 有没有专业做二维码连接网站在商标注册的官方网
  • 如何做网站对话框国际贸易网站建设 中企动力湖北
  • 杭州网站建设市场网页设计入门知识
  • 如何做flash游戏下载网站校园门户网站系统建设
  • 网站建设营销解决方案wordpress进不去
  • 品牌建设网站规划安家堡网站建设
  • 海南建设银行官方网站智慧门店管理服务平台
  • 大连博硕网站建设做舞美的好素材网站j
  • 怎样仿制网站做网站用win2008系统
  • 做企业网站联系上海网页制作费用
  • wordpress弹框登陆百度seo快速提升排名
  • 淄博学校网站建设定制初中学校网站如何做
  • 网站项目报价单昆山室内设计学校
  • 重庆平台网站建设费用网页设计作业源码
  • 重庆营销型网站制作营销型网站建设思路
  • 网站有哪些类型和它的成功案例wordpress改地址错误
  • 松江做移动网站设计400大看免费行情的软件
  • 网站后台根据前端做吗wordpress 评论表情
  • 网站建设外文参考文献潜江哪里做网站
  • 成都网站建设v芯ee8888e招商网站的建设意义
  • 做网站的什么公司最好小程序平台登陆
  • 高新区网站建设 意义网络规划设计师教材
  • 做视频卖给视频网站wordpress后台ftp
  • 直播网站开发计划书软文案例500字
  • 网站添加百度统计代码吗响应式网站解决方案
  • wordpress分享视频网站住房城乡住房和城乡建设部网站
  • 电影网站建设推广网站建设可视化工具
  • 校园网站建设可行性分析大数据抓取客户软件
  • 社交网站做强徐州网站建设方案开发
  • 政务公开网站建设管理现在装宽带多少钱