def corner_harris(image, method='k', k=0.05, eps=1e-06, sigma=1):
 (Axx, Axy, Ayy) = structure_tensor(image, sigma)
 detA = ((Axx * Ayy) - (Axy ** 2))
 traceA = (Axx + Ayy)
 if (method == 'k'):
  response = (detA - (k * (traceA ** 2)))
 else:
  response = ((2 * detA) / (traceA + eps))
 return response

def corner_harris ( image , method = 'k' , k = 0.05 , eps = 1e-06 , sigma = 1 ) : ( Axx , Axy , Ayy ) = structure_tensor ( image , sigma ) detA = ( ( Axx * Ayy ) - ( Axy ** 2 ) ) traceA = ( Axx + Ayy ) if ( method == 'k' ) : response = ( detA - ( k * ( traceA ** 2 ) ) ) else : response = ( ( 2 * detA ) / ( traceA + eps ) ) return response
compute harris corner measure response image .