Guest User

Untitled

a guest
Jul 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def augment_rotation(depth):
  2. augment_rotate = []
  3. rows,cols = depth.shape
  4. for i in range(-180,181):
  5. M = cv2.getRotationMatrix2D(((cols-1)/2.0,(rows-1)/2.0),i,1)
  6. augment_rotate.append(cv2.warpAffine(depth,M,(cols,rows)))
  7. return augment_rotate
Add Comment
Please, Sign In to add comment