Add debugging

This commit is contained in:
2024-07-24 00:22:08 +02:00
parent 7386290e87
commit 19f8e010e0
2 changed files with 9 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ from utils import isARawImage, Color, getColorChannel, mergeSingleColorChannelIm
FOLDERS = {
'Rafael 23/04/24': '../rafael/230424',
'RAISE flat-field': '../flat-field/nef',
'RAISE not flat-field': '../not_flat-field/nef',
'RAISE non-flat-field': '../non-flat-field/nef',
}
def getImageMergedColorChannels(filePath):
@@ -41,8 +41,8 @@ estimatedPrnus = {folderName: getEstimatedPrnu(folder) for folderName, folder in
print(f'{corr(estimatedPrnus["Rafael 23/04/24"], estimatedPrnus["Rafael 23/04/24"])=}')
print(f'{corr(estimatedPrnus["Rafael 23/04/24"], estimatedPrnus["RAISE flat-field"])=}')
print(f'{corr(estimatedPrnus["RAISE flat-field"], estimatedPrnus["Rafael 23/04/24"])=}')
print(f'{corr(estimatedPrnus["Rafael 23/04/24"], estimatedPrnus["RAISE not flat-field"])=}')
print(f'{corr(estimatedPrnus["RAISE flat-field"], estimatedPrnus["RAISE not flat-field"])=}')
print(f'{corr(estimatedPrnus["Rafael 23/04/24"], estimatedPrnus["RAISE non-flat-field"])=}')
print(f'{corr(estimatedPrnus["RAISE flat-field"], estimatedPrnus["RAISE non-flat-field"])=}')
plt.imshow(estimatedPrnus['RAISE flat-field'])
plt.show()