mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix typos
This commit is contained in:
parent
ad0857f8eb
commit
a3657a223f
@ -162,7 +162,7 @@ class IntensityBasedOpeness:
|
|||||||
changed = False
|
changed = False
|
||||||
newval_flg = False
|
newval_flg = False
|
||||||
oob = False
|
oob = False
|
||||||
if int_x >= frame.shape[1]:
|
if int_x >= frame.shape[0]:
|
||||||
int_x = frame.shape[0] - 1
|
int_x = frame.shape[0] - 1
|
||||||
obb = True
|
obb = True
|
||||||
print('CAUGHT X OUT OF BOUNDS')
|
print('CAUGHT X OUT OF BOUNDS')
|
||||||
@ -171,15 +171,15 @@ class IntensityBasedOpeness:
|
|||||||
int_x = True
|
int_x = True
|
||||||
print('CAUGHT X UNDER BOUNDS')
|
print('CAUGHT X UNDER BOUNDS')
|
||||||
|
|
||||||
if int_x >= frame.shape[1]:
|
if int_y >= frame.shape[1]:
|
||||||
int_x = frame.shape[0] - 1
|
int_y = frame.shape[1] - 1
|
||||||
oob = True
|
oob = True
|
||||||
print('CAUGHT X OUT OF BOUNDS')
|
print('CAUGHT Y OUT OF BOUNDS')
|
||||||
|
|
||||||
if int_x < 0:
|
if int_y < 0:
|
||||||
int_x = 1
|
int_y = 1
|
||||||
oob = True
|
oob = True
|
||||||
print('CAUGHT X UNDER BOUNDS')
|
print('CAUGHT Y UNDER BOUNDS')
|
||||||
|
|
||||||
if oob != True:
|
if oob != True:
|
||||||
data_val = self.data[int_y, int_x]
|
data_val = self.data[int_y, int_x]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user