Guest User

Untitled

a guest
Jan 22nd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import cv2
  2. import numpy as np
  3.  
  4. r = 300
  5. SOME_EXTRA_SPACE = 5
  6. combinedImg = np.zeros((2 * r + SOME_EXTRA_SPACE, 2 * r + SOME_EXTRA_SPACE, 3), np.uint8)
  7. cv2.circle(combinedImg,(r, r), r, (0,0,255), thickness = 3)
  8. cv2.circle(combinedImg,(r, r), 3, (110,50,50), thickness = 10) # circle centr
  9. polar = cv2.logPolar(combinedImg, (r , r), r, cv2.WARP_FILL_OUTLIERS )
  10.  
  11. cv2.imshow("origina image", combinedImg)
  12. cv2.imshow("polar", polar)
  13. cv2.waitKey();cv2.destroyAllWindows()
Add Comment
Please, Sign In to add comment