Clean extract_noise.py

This commit is contained in:
Benjamin Loison 2024-04-24 14:10:22 +02:00
parent c65b3642d8
commit a78dcd6f99
No known key found for this signature in database

View File

@ -41,8 +41,8 @@ if raiseNotFlatFields:
# Among:
# - `None`
# - `"sky"`
# - `"wall"`
# - `'sky'`
# - `'wall'`
type_ = None
if type_ is not None:
ranges = {
@ -141,7 +141,6 @@ if denoiser == 'mean':
colorMean = None
numberOfImagesInColorMean = 0
for imageFileName in tqdm(imagesFileNames, f'Computing mean of {color} images'):
#print(imageFileName)
imageNpArray = getImageNpArray(imageFileName, False, color)
if colorMean is None:
colorMean = imageNpArray