Example #1
0
def test_keypoint_shift_scale_rotate(keypoint, expected, angle, scale, dx, dy):
    actual = F.keypoint_shift_scale_rotate(keypoint,
                                           angle,
                                           scale,
                                           dx,
                                           dy,
                                           rows=100,
                                           cols=200)
    np.testing.assert_allclose(actual, expected, rtol=1e-4)
Example #2
0
 def apply_to_keypoint(self,
                       keypoint,
                       angle=0,
                       scale=0,
                       dx=0,
                       dy=0,
                       rows=0,
                       cols=0,
                       interpolation=cv2.INTER_LINEAR,
                       **params):
     return augf.keypoint_shift_scale_rotate(keypoint, angle, scale, dx, dy,
                                             rows, cols)