UPDATE Vision bug 坐标超范围
This commit is contained in:
@ -33,7 +33,6 @@ def remove_nan_mean_value(pm, y, x, iter_max=50):
|
|||||||
y, x = out_bounds_dete(pm.shape[0], pm.shape[1], y, x)
|
y, x = out_bounds_dete(pm.shape[0], pm.shape[1], y, x)
|
||||||
point_x, point_y, point_z = pm[y, x]
|
point_x, point_y, point_z = pm[y, x]
|
||||||
if np.isnan(point_x):
|
if np.isnan(point_x):
|
||||||
print('Nan值去除')
|
|
||||||
point_x_list = []
|
point_x_list = []
|
||||||
point_y_list = []
|
point_y_list = []
|
||||||
point_z_list = []
|
point_z_list = []
|
||||||
@ -41,6 +40,7 @@ def remove_nan_mean_value(pm, y, x, iter_max=50):
|
|||||||
pm_shape_y = pm.shape[0]
|
pm_shape_y = pm.shape[0]
|
||||||
pm_shape_x = pm.shape[1]
|
pm_shape_x = pm.shape[1]
|
||||||
remove_nan_isok = False
|
remove_nan_isok = False
|
||||||
|
print('Nan值去除')
|
||||||
while iter_current < iter_max:
|
while iter_current < iter_max:
|
||||||
# 计算开始点
|
# 计算开始点
|
||||||
if y - iter_current > 0:
|
if y - iter_current > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user