利用python 生成 傅里叶曲线
'''
:func 基于傅里叶变换生成线图
:author: MrLi
:date:
'''
import sys
import os
import codecs
import json
import imageio
import numpy as np
import random
import matplotlib.pyplot as plt
from PIL import Image, ImageDraw
import cv2
def point(x0, y0, diameter, single):
x1 = np.sin(single) * diameter + x0
y1 = np.cos(single) * diameter + y0
return x1, y1
def covert(x0, y0, diametersingles):
x = x0
y = y0
for diameter, single in diametersingles:
x, y = point(x, y, diameter, single)
return x, y
def drawpoint(src