fix typos

This commit is contained in:
Prohurtz 2023-02-18 16:09:23 -06:00
parent ad0857f8eb
commit a3657a223f

View File

@ -162,7 +162,7 @@ class IntensityBasedOpeness:
changed = False
newval_flg = False
oob = False
if int_x >= frame.shape[1]:
if int_x >= frame.shape[0]:
int_x = frame.shape[0] - 1
obb = True
print('CAUGHT X OUT OF BOUNDS')
@ -171,15 +171,15 @@ class IntensityBasedOpeness:
int_x = True
print('CAUGHT X UNDER BOUNDS')
if int_x >= frame.shape[1]:
int_x = frame.shape[0] - 1
if int_y >= frame.shape[1]:
int_y = frame.shape[1] - 1
oob = True
print('CAUGHT X OUT OF BOUNDS')
print('CAUGHT Y OUT OF BOUNDS')
if int_x < 0:
int_x = 1
if int_y < 0:
int_y = 1
oob = True
print('CAUGHT X UNDER BOUNDS')
print('CAUGHT Y UNDER BOUNDS')
if oob != True:
data_val = self.data[int_y, int_x]