Fourth commit

This commit is contained in:
lan daiqing
2022-07-27 20:41:38 +08:00
parent 079dd34037
commit 3d78b6edb3
11 changed files with 623 additions and 105 deletions

View File

@@ -41,12 +41,13 @@ class modfifyImage():
# 显示图像三通道颜色
def img_RGB(self):
root="E:\\桌面\\Python_Picture_Analysis\\data\\" # 图片保存地址
red = self.imageMatrix().copy()
red = self.imageMatrix().copy() # 图片复制
red[:, :, 1:3] = 0
green = self.imageMatrix().copy()
green[:, :, ::2] = 0
blue = self.imageMatrix().copy()
blue[:, :, :2] = 0
# 定义画布 多图合并显示
x, y = plt.subplots(2, 2)
x.set_size_inches(10, 10)
y[0, 0].imshow(self.imageMatrix())