horizantal and vertical edge detection...

조회 수: 13 (최근 30일)
karkki Balasubramaniam
karkki Balasubramaniam 2014년 3월 8일
댓글: Image Analyst 2017년 10월 29일
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
karkki Balasubramaniam
karkki Balasubramaniam 2014년 3월 8일
this is the output image...
saba saleem
saba saleem 2017년 10월 29일
how did you get this output? can you give me the MATLAB code of this image? as early as possible. please

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2014년 3월 8일
There are functions imgradient() and imgradientxy() that are what you want. You might try converting into hsv colorspace and doing the gradient on just the H or just the V channels, or try all 3. Compare them and pick whichever combination gives you the "best" edges.

추가 답변 (1개)

Dishant Arora
Dishant Arora 2014년 3월 8일
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
karkki Balasubramaniam
karkki Balasubramaniam 2014년 3월 10일
thanks yarrr
Image Analyst
Image Analyst 2017년 10월 29일
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).

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by