Skip to content

Commit e9d87ca

Browse files
committed
Missing square of trace in Harris.
1 parent fce99a1 commit e9d87ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PCV/localdescriptors/harris.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def compute_harris_response(im,sigma=3):
2222
Wdet = Wxx*Wyy - Wxy**2
2323
Wtr = Wxx + Wyy
2424

25-
return Wdet / Wtr
25+
return Wdet / (Wtr*Wtr)
2626

2727

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

pcv_book/harris.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def compute_harris_response(im,sigma=3):
2222
Wdet = Wxx*Wyy - Wxy**2
2323
Wtr = Wxx + Wyy
2424

25-
return Wdet / Wtr
25+
return Wdet / (Wtr*Wtr)
2626

2727

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

0 commit comments

Comments
 (0)