自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 matlab批量修改指定像素

clear;clc;OutputDir = 'D:\pro\self_w\out\';%输出文件夹路径%读入所有png格式的图像files = dir(fullfile('D:\pro\self_w\新建文件夹\','*.png'));lengthFiles = length(files);%进行所有图像的遍历for n = 1:lengthFiles Img = imread(strcat('D:\pro\self_w\新建文件夹\',files(n).name)); [q.

2021-12-06 10:06:16 2166

原创 提取文件并另存为

import osfrom PIL import Image as imgi=0# j=1399for root, dirs, files in os.walk('D:\pro/tuu',topdown=False): for dir in dirs: i += 1 for file in os.listdir(os.path.join(root,dir)): path=os.path.join(root,dir) .

2021-11-22 10:55:29 91

原创 平均分割图像python

import osfrom PIL import Image# 分割图片def cut_image(image, count,count1): width, height = image.size item_width = int(width / count) item_height = int(height/count1) box_list = [] # (left, upper, right, lower) for j in range(0, .

2021-11-22 10:54:12 950

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除