I'm trying to use edge detection to find an uneven horizontal edge that is always bright on top and dark on the bottom. I have had decent luck with canny edge detecting but keep picking up other edges which are dark on the top and light on the bottom. Is there any way in canny or some other standard MATLAB edge detection to specify a direction for edge detection? Thanks
Asked
Active
Viewed 364 times
-1
-
I think simple `diff` instruction may work. Can you please upload the input image? – Rotem Sep 09 '16 at 20:55
1 Answers
0
I would use
[Gx,Gy] = imgradientxy(myimage)
to get the directional image gradient. Then you would define some threshold for the image gradient in the direction you care about.

Llouis
- 26
- 5
-
Yea but I'm not looking for just horizontal vs. vertical edges. I'm looking for horizontal edges specifically where the bright half of the edge is on the top of the horizontal edge and not those instances where the bright half is on the bottom. – user3470496 Sep 13 '16 at 18:35