Correct declaration of numerator and denominator in get_OD()
This commit is contained in:
parent
591ba03f96
commit
0ea0dce4f2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user