Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- image = cv2.imread('images/input.jpg')
- smaller = cv2.pyrDown(image)
- larger = cv2.pyrUp(smaller)
- cv2.imshow('Original', image )
- cv2.imshow('Smaller ', smaller )
- cv2.imshow('Larger ', larger )
- cv2.waitKey(0)
- cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement