retrotape.py 文件源码

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

项目:StormCV2017 作者: 2729StormRobotics 项目源码 文件源码
def __cv_erode(src, kernel, anchor, iterations, border_type, border_value):
        """Expands area of lower value in an image.
        Args:
           src: A numpy.ndarray.
           kernel: The kernel for erosion. A numpy.ndarray.
           iterations: the number of times to erode.
           border_type: Opencv enum that represents a border type.
           border_value: value to be used for a constant border.
        Returns:
            A numpy.ndarray after erosion.
        """
        return cv2.erode(src, kernel, anchor, iterations = (int) (iterations +0.5),
                            borderType = border_type, borderValue = border_value)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号