Skip to content
Snippets Groups Projects
Commit c399c299 authored by Marziyeh Mohammadi's avatar Marziyeh Mohammadi :speech_balloon:
Browse files

Implement edge detector.

parent 2072fb6a
Branches
No related tags found
1 merge request!1Master
......@@ -108,7 +108,9 @@ def harrisEdges(input, response, edge_threshold=-0.01):
##
## Don't generate edges at the image border.
result = input.copy()
edges_idx = np.argwhere(response < edge_threshold)
for each_pixel in edges_idx:
result[each_pixel[0], each_pixel[1]] = (0,0, 255)
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment