diff --git a/ex1/code/Skeleton/main.py b/ex1/code/Skeleton/main.py index e05872d9e3d3136b286b5c58e0ba0509b5c757dd..db9e66511420809312a0033d1f595bad74c23e35 100644 --- a/ex1/code/Skeleton/main.py +++ b/ex1/code/Skeleton/main.py @@ -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