import math
import numpy as np
import cv2 as cv
def Polar2Cartesian(theata):
"""
极坐标转直角坐标系
:return: 斜率
"""
pi = 3.14
radian = pi * theata / 180
return math.tan(radian)
def Painter(ori,theta):
"""
painter a picture
:param ori: origin image
:param theta: θ
:return: img
"""
width, height = ori.shape[0], ori.shape[1]
img = np.zeros((height,width))
slope = Polar2Cartesian(theta
python在图上画出射线及平行线
极坐标到直角坐标转换及绘图
最新推荐文章于 2024-04-10 17:09:47 发布

最低0.47元/天 解锁文章

2292

被折叠的 条评论
为什么被折叠?



