Add and use getImageFileNameByColor

This commit is contained in:
Benjamin Loison 2024-04-18 00:43:14 +02:00
parent fddb89c64a
commit be91a07dd5
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -1,11 +1,15 @@
from PIL import Image
from utils import Color
def getImageFileNameByColor(color):
return f'mean_flat-field_nef_wavelet_{color}.png'
color = Color.BLUE
image = Image.open(f'mean_flat-field_nef_wavelet_{color}.png')
image = Image.open(getImageFileNameByColor(color))
#print(image.size)
newImage = Image.new('RGB', [dimension * 2 for dimension in image.size])
#print(newImage.size)
for color in Color:
getImageFileNameByColor(color)