Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- import numpy as np
- r = 300
- SOME_EXTRA_SPACE = 5
- combinedImg = np.zeros((2 * r + SOME_EXTRA_SPACE, 2 * r + SOME_EXTRA_SPACE, 3), np.uint8)
- cv2.circle(combinedImg,(r, r), r, (0,0,255), thickness = 3)
- cv2.circle(combinedImg,(r, r), 3, (110,50,50), thickness = 10) # circle centr
- polar = cv2.logPolar(combinedImg, (r , r), r, cv2.WARP_FILL_OUTLIERS )
- cv2.imshow("origina image", combinedImg)
- cv2.imshow("polar", polar)
- cv2.waitKey();cv2.destroyAllWindows()
Add Comment
Please, Sign In to add comment