Home
last modified time | relevance | path

Searched refs:cluster (Results 1 – 1 of 1) sorted by relevance

/cts/apps/CameraITS/tests/inprog/rolling_shutter_skew/
Dtest_rolling_shutter_skew.py541 def find_cluster_bounding_rect(cluster, scratch_frame): argument
555 avg_distance = find_average_neighbor_distance(cluster)
559 c_x = min(cluster, key=lambda c: c.x - c.r)
560 c_y = min(cluster, key=lambda c: c.y - c.r)
561 c_w = max(cluster, key=lambda c: c.x + c.r)
562 c_h = max(cluster, key=lambda c: c.y + c.r)
577 def find_average_neighbor_distance(cluster): argument
587 for a in cluster:
590 for b in cluster:
598 avg_distance /= len(cluster)