Correct declaration of numerator and denominator in get_OD()

This commit is contained in:
Joschka 2023-08-07 10:41:20 +02:00
parent 591ba03f96
commit 0ea0dce4f2

View File

@ -208,12 +208,12 @@ class ImageAnalyser():
:rtype: numpy array
"""
numerator = np.atleast_1d(imageBackground - imageDrak)
denominator = np.atleast_1d(imageAtom - imageDrak)
denominator = np.atleast_1d(imageBackground - imageDrak)
numerator = np.atleast_1d(imageAtom - imageDrak)
numerator[numerator == 0] = 1
denominator[denominator == 0] = 1
imageOD = np.abs(np.divide(denominator, numerator))
numerator[numerator == 0] = 1
imageOD = np.abs(np.divide(numerator, denominator))
imageOD= -np.log(imageOD)
if len(imageOD) == 1: