Add and use getImageFileNameByColor
This commit is contained in:
parent
fddb89c64a
commit
be91a07dd5
@ -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)
|
Loading…
Reference in New Issue
Block a user