smoothing.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:CElegansBehaviour 作者: ChristophKirst 项目源码 文件源码
def intensity_along_curve(image, curve, order = 3):
  """Returns intensity profile along a curve in an image

  Arguments:
    image (array): the grayscale image
    curve (nx2 array): points defining the curve
    order (int): interpolation order

  Returns:
    n array: intensity values along curve
  """

  return ndi.map_coordinates(image, curve.T[::-1], order = order);
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号