def cntr(self):
'''returns a rough estimate of the circumference'''
if self._cntr is None:
new_pts = si.splev(np.linspace(0, 1, 1000), self.tck, ext=2)
self._cntr = np.mean(new_pts, 1)
return self._cntr
04-spline_fitter.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录