def compute_harris_response(im,sigma=3):
    
    # derivatives
    imx = zeros(im.shape)
    filters.gaussian_filter(im, (sigma,sigma), (0,1), imx)
    imy = zeros(im.shape)
    filters.gaussian_filter(im, (sigma,sigma), (1,0), imy)
    
    # compute components of the Harris matrix
    Wxx = filters.gaussian_filter(imx*imx,sigma)
    Wxy = filters.gaussian_filter(imx*imy,sigma)
    Wyy = filters.gaussian_filter(imy*imy,sigma)
    
    # determinant and trace
    Wdet = Wxx*Wyy - Wxy**2
    Wtr = Wxx + Wyy
    
    return Wdet / Wtr
All widgets must implement this function.
dataset/ETHPy150Open jesolem/PCV/PCV/localdescriptors/harris.py/compute_harris_response--crossover with--dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/widget.py/FixedWidget.render