Created
January 7, 2016 15:03
-
-
Save PeaceAndHiLight/e155b84dc1014cd5aa74 to your computer and use it in GitHub Desktop.
Flip Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
import cv2 | |
img = cv2.imread('beatles_forsale.jpg', cv2.IMREAD_COLOR) | |
xAxis = cv2.flip(img, 0) | |
yAxis = cv2.flip(img, 1) | |
xyAxis = cv2.flip(img, -1) | |
cv2.imwrite('xAxis.jpg', xAxis) | |
cv2.imwrite('yAxis.jpg', yAxis) | |
cv2.imwrite('xyAxis.jpg', xyAxis) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment