saliency.py 文件源码

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

项目:saliency 作者: shuuchen 项目源码 文件源码
def gaborConspicuity(image, steps):
    """
        Creates the conspicuity map for the channel `orientations'.
    """
    gaborConspicuity_ = numpy.zeros((1088, 1983), numpy.uint8)
    for step in range(steps):
        theta = step * (math.pi/steps)
        gaborFilter = makeGaborFilter(dims=(10,10), lambd=2.5, theta=theta, psi=math.pi/2, sigma=2.5, gamma=.5)
        gaborFeatures = features(image = intensity(im), channel = gaborFilter)
        summedFeatures = sumNormalizedFeatures(gaborFeatures)
        #gaborConspicuity_ += N(summedFeatures)
        np.add(gaborConspicuity_, N(summedFeatures), out=gaborConspicuity_, casting="unsafe")
    return gaborConspicuity_
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号