Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def augment_rotation(depth):
- augment_rotate = []
- rows,cols = depth.shape
- for i in range(-180,181):
- M = cv2.getRotationMatrix2D(((cols-1)/2.0,(rows-1)/2.0),i,1)
- augment_rotate.append(cv2.warpAffine(depth,M,(cols,rows)))
- return augment_rotate
Add Comment
Please, Sign In to add comment