Precise imagesFolderPathFileName depending on sky or wall

This commit is contained in:
Benjamin Loison 2024-04-21 19:54:04 +02:00
parent e2406071d4
commit 9f2334ceea
No known key found for this signature in database

View File

@ -33,9 +33,13 @@ 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)]
SKY = range(2_699, 2_807)
WALL = range(2_807, 2_912)
imagesFileNames = [f'DSC0{imageIndex}.ARW' for imageIndex in SKY]
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_}'
minColor = None
maxColor = None