当前位置: 首页 > news >正文

网站域名怎么写好wordpress 视频格式

网站域名怎么写好,wordpress 视频格式,wordpress分享后下载地址,中华网军事网您可以使用 Ramer-Douglas-Peucker (RDP) algorithm来简化路径。然后#xff0c;您可以计算简化路径每段的方向变化。对应于方向最大变化的点可以称为转折点#xff1a; RDP算法的Python实现可以在on github中找到。 import matplotlib.pyplot as plt import numpy as np imp…您可以使用 Ramer-Douglas-Peucker (RDP) algorithm来简化路径。然后您可以计算简化路径每段的方向变化。对应于方向最大变化的点可以称为转折点 RDP算法的Python实现可以在on github中找到。 import matplotlib.pyplot as plt import numpy as np import os import rdp def angle(dir):Returns the angles between vectors. Parameters: dir is a 2D-array of shape (N,M) representing N vectors in M-dimensional space. The return value is a 1D-array of values of shape (N-1,), with each value between 0 and pi. 0 implies the vectors point in the same direction pi/2 implies the vectors are orthogonal pi implies the vectors point in opposite directionsdir2 dir[1:] dir1 dir[:-1] return np.arccos((dir1*dir2).sum(axis1)/( np.sqrt((dir1**2).sum(axis1)*(dir2**2).sum(axis1)))) tolerance 70 min_angle np.pi*0.22 filename os.path.expanduser(~/tmp/bla.data) points np.genfromtxt(filename).T print(len(points)) x, y points.T # Use the Ramer-Douglas-Peucker algorithm to simplify the path # http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm # Python implementation: https://github.com/sebleier/RDP/ simplified np.array(rdp.rdp(points.tolist(), tolerance)) print(len(simplified)) sx, sy simplified.T # compute the direction vectors on the simplified curve directions np.diff(simplified, axis0) theta angle(directions) # Select the index of the points with the greatest theta # Large theta is associated with greatest change in direction. idx np.where(thetamin_angle)[0]1 fig plt.figure() ax fig.add_subplot(111) ax.plot(x, y, b-, labeloriginal path) ax.plot(sx, sy, g--, labelsimplified path) ax.plot(sx[idx], sy[idx], ro, markersize 10, labelturning points) ax.invert_yaxis() plt.legend(locbest) plt.show() 以上使用两个参数RDP算法采用一个参数公差其中代表简化路径的最大距离可能偏离原来的路径。公差越大粗鲁的路径就越简单。另一个参数是min_angle它定义了被认为是一个转折点。 (我正在转弯点是原始路径上的任何一点简化路径上的进入和退出向量之间的角度大于min_angle)。
http://www.yutouwan.com/news/418605/

相关文章:

  • 西安网站建设云李做网站开专票税钱是多少个点
  • 购物网站大全分类自建网站 微信网页版
  • 怎么做虚拟币网站windows wordpress 伪静态
  • 网站的建设怎么写商场网站建设
  • 企业网站推广可以选择哪些方法一学一做教育视频网站有哪些内容
  • 比较实用的h5网页建设网站wordpress做直播网站
  • 现在还有人用asp做网站美食网站模版
  • 罗村网站开发wordpress清除所有评论
  • 新加坡购物网站排名常见网络营销推广方法
  • 企业门户网站 源码wordpress 游客不可见
  • 做网站模板链接放哪里想学做电商怎么入手
  • 新站seo优化快速上排名设计说明模版
  • 做博客的网站wordpress 文章 id
  • 东莞seo建站珠海网站建设培训
  • 做网站银川创新型的福州网站建设
  • 微企帮做网站个人建购物网站怎么备案
  • 做网站的客户程序员自己做网站赚钱
  • 服装商城的网站策划书济南网站制作费用
  • 莆田网站制作设计网站开发方式有外包
  • 有网络网站打不开怎么回事国内免费代理服务器
  • 网站开发的背景的讲解win7环境wordpress
  • 网站建设丷金手指专业十五装修设计费
  • 网站备案和实际的不同网络销售的主要传播渠道
  • 布吉附近网站建设公司wordpress xml怎么开
  • 网站违反了 google 质量指南网上的推广公司
  • 微网站设计与开发是什么网站制作 知乎
  • cgi做的网站原网站备案在哪
  • 网站提升流量如何建立自己的网页
  • 类似wordpress的建站系统在线商城怎么弄的
  • 发外链的网站都要企业注册企业网络采购平台