Add and use getImageFileNameByColor

This commit is contained in:
2024-04-18 00:43:14 +02:00
parent fddb89c64a
commit be91a07dd5

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)