added contact gpu support
This commit is contained in:
+1
-1
@@ -321,7 +321,7 @@ def main():
|
||||
|
||||
# 计算扩张焦点
|
||||
# foe_result = orisys.util.compute_foe(vnormal,min_magnitude=1,expansion_threshold=0.01,downsample_factor=1)
|
||||
foe_result = sensor.get_foe(multiple_foe=False, min_magnitude=1, expansion_threshold=0.01, downsample_factor=1,denoise_sigma=15)
|
||||
foe_result = sensor.get_contact(multiple_foe=False, min_magnitude=1, expansion_threshold=0.01, downsample_factor=1,denoise_sigma=15)
|
||||
# 在图像上绘制焦点和区域
|
||||
image_with_foe = orisys.util.draw_foe(sensor.img.copy(), foe_result)
|
||||
cv2.imshow("Focus of Expansion", image_with_foe)
|
||||
|
||||
Reference in New Issue
Block a user