(points, mat, invert=False)
| 87 | |
| 88 | |
| 89 | def transform_points(points, mat, invert=False): |
| 90 | if invert: |
| 91 | mat = cv2.invertAffineTransform(mat) |
| 92 | points = np.expand_dims(points, axis=1) |
| 93 | points = cv2.transform(points, mat, points.shape) |
| 94 | points = np.squeeze(points) |
| 95 | return points |
| 96 | |
| 97 | |
| 98 | def get_warp_mat_bbox_by_gt_pts_float( |
no outgoing calls
no test coverage detected