Skip to content

Commit

Permalink
Missing square of trace in Harris.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesolem committed Jan 23, 2013
1 parent fce99a1 commit e9d87ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PCV/localdescriptors/harris.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def compute_harris_response(im,sigma=3):
Wdet = Wxx*Wyy - Wxy**2
Wtr = Wxx + Wyy

return Wdet / Wtr
return Wdet / (Wtr*Wtr)


def get_harris_points(harrisim,min_dist=10,threshold=0.1):
Expand Down
2 changes: 1 addition & 1 deletion pcv_book/harris.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def compute_harris_response(im,sigma=3):
Wdet = Wxx*Wyy - Wxy**2
Wtr = Wxx + Wyy

return Wdet / Wtr
return Wdet / (Wtr*Wtr)


def get_harris_points(harrisim,min_dist=10,threshold=0.1):
Expand Down

0 comments on commit e9d87ca

Please sign in to comment.