Add and use getImageFileNameByColor
This commit is contained in:
parent
fddb89c64a
commit
3fc0d64512
@ -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)
|
@ -1,7 +1,7 @@
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
fileName = 'mean_flat-field_nef_wavelet_blue'
|
||||
fileName = 'mean_flat-field_nef_wavelet_green_bottom'
|
||||
npArray = np.load(f'{fileName}.npy')
|
||||
npArrayMin = npArray.min()
|
||||
print(f'{npArrayMin=}')
|
||||
|
Loading…
Reference in New Issue
Block a user