Skip to content

Commit

Permalink
Update edge.py
Browse files Browse the repository at this point in the history
update threshold 't'
  • Loading branch information
SujoyKG committed Jun 12, 2020
1 parent 8f6d638 commit 0017fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mahotas/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def sujoy(img, kernel_nhood=0, just_filter=False):
grad += grad_v
if just_filter:
return grad
t = 2*np.sqrt(grad.mean())
t = np.sqrt(grad.mean())

return mh.regmax(grad)*(np.sqrt(grad)>t)

Expand Down

0 comments on commit 0017fc1

Please sign in to comment.