import PIL.Image as Image
import matplotlib.pyplot as plt
img = Image.open("111.png")
for i in range(img.width):
for j in range(img.height):
r,g,b = img.getpixel((i,j))
if(r > b and r > g):
b=0
g=0
r=0
img.putpixel((i,j), (r,g,b))
plt.imshow(img)
plt.show()
改变图片中某种颜色import PIL.Image as Image import matplotlib.pyplot as pltimg = Image.open("111.png") for i in range(img.width): for j in range(img.height): r,g,b = img.getpixel((i,j))...