Home
last modified time | relevance | path

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

/cts/apps/CameraITS/tests/rolling_shutter_skew/
Dtest_rolling_shutter_skew.py537 def find_cluster_bounding_rect(cluster, scratch_frame): argument
551 avg_distance = find_average_neighbor_distance(cluster)
555 c_x = min(cluster, key=lambda c: c.x - c.r)
556 c_y = min(cluster, key=lambda c: c.y - c.r)
557 c_w = max(cluster, key=lambda c: c.x + c.r)
558 c_h = max(cluster, key=lambda c: c.y + c.r)
573 def find_average_neighbor_distance(cluster): argument
583 for a in cluster:
586 for b in cluster:
594 avg_distance /= len(cluster)