Fourth commit
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user