Correct Rafael images filtering

This commit is contained in:
Benjamin Loison 2024-04-23 04:37:46 +02:00
parent e3bbb2c63d
commit 809aa7fb43
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -37,13 +37,18 @@ if raiseNotFlatFields:
imagesFileNames = [imageFileName for imageFileName in tqdm(imagesFileNames, 'Filtering images') if files[imageFileName]['Device'] == 'Nikon D7000' and Image.open(f'{imagesFolderPath}/png/{imageFileName}').size == (4946, 3278)]
ranges = {
'sky': range(2_699, 2_807),
'wall': range(2_807, 2_912),
}
type_ = 'sky'
imagesFileNames = [f'DSC0{imageIndex}.ARW' for imageIndex in ranges[type_]]
imagesFolderPathFileName += f'_{type_}'
# Among:
# - `None`
# - `"sky"`
# - `"wall"`
type_ = None
if type_ is not None:
ranges = {
'sky': range(2_699, 2_807),
'wall': range(2_807, 2_912),
}
imagesFileNames = [f'DSC0{imageIndex}.ARW' for imageIndex in ranges[type_]]
imagesFolderPathFileName += f'_{type_}'
minColor = None
maxColor = None