gradients.py 文件源码

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

项目:computer-vision-algorithms 作者: aleju 项目源码 文件源码
def _compute_derivatives(image, mode='constant', cval=0):
    """Compute derivatives the way that scikit-image does it (for comparison).
    This method is fully copied from the repository."""
    imgy = ndimage.sobel(image, axis=0, mode=mode, cval=cval)
    imgx = ndimage.sobel(image, axis=1, mode=mode, cval=cval)

    return imgx, imgy
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号