Si j'ouvre une image comme celle ci-dessous, est-il possible d'agrandir les pixels blancs?Développer les pixels blancs Traitement d'image en python
pseudocode:
image = Image.open("test.png")
image = image.convert("RGBA")
my_data = image.getdata()
new_data = []
for i in my_data:
if i[0] == 255 and i[1] == 255 and i[2] == 255:
#append white to new_data + to the pixels around
else:
new_data.append((255, 255, 255, 0))
Merci