horizantal and vertical edge detection...
Show older comments

Use a spatial filter to get the horizontal edge of the image. Use a spatial filter to get the vertical edge of the image (read the MATLAB documentation on fspecial). Add the horizontal edge matrix to the vertical edge matrix to yield the following results:
i donot know, how to do this....
2 Comments
karkki Balasubramaniam
on 8 Mar 2014
saba saleem
on 29 Oct 2017
how did you get this output? can you give me the MATLAB code of this image? as early as possible. please
Accepted Answer
More Answers (1)
Dishant Arora
on 8 Mar 2014
Documentation says it all,use sobel or prewitt to realize horizontal edge detecting filter. read the manual thoroughly and go through the examples to see hoe it works.
doc fspecial
2 Comments
karkki Balasubramaniam
on 10 Mar 2014
Image Analyst
on 29 Oct 2017
Yes. You're just showing the kernel. If you want to see the edge image, call imgradient() or else some other way filter the badly-named "a" with the "h" kernel. The call imshow(a).
Categories
Find more on Object Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!