python类corner_harris()的实例源码

corner_plgs.py 文件源码 项目:imagepy 作者: Image-Py 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def run(self, ips, snap, img, para = None):
        cimg = feature.corner_harris(img, sigma=para['sigma'], k=para['k'])
        pts = feature.corner_peaks(cimg, min_distance=1)
        self.ips.roi = PointRoi([tuple(i[::-1]) for i in pts])
harris.py 文件源码 项目:computer-vision-algorithms 作者: aleju 项目源码 文件源码 阅读 76 收藏 0 点赞 0 评论 0
def main():
    """Load image, calculate harris scores (window functions: matrix of ones, gauss)
    and plot the results."""
    img = data.checkerboard()
    score_window = harris_ones(img, 7)
    score_gauss = harris_gauss(img)
    util.plot_images_grayscale(
        [img, score_window, score_gauss, feature.corner_harris(img)],
        ["Image", "Harris-Score (ones)", "Harris-Score (gauss)", "Harris-Score (ground truth)"]
    )


问题


面经


文章

微信
公众号

扫码关注公众号