How can i obtain the edge of an Image using Compass operator in matlab.. pls respond with matlab code

3 views (last 30 days)
I need to get matlab code to know the image edge detection using compass operator.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 25 Mar 2019
I have answered based on the defination from this paper (SOBEL COMPASS EDGE DETECTOR).
hx=[-1 0 1;-2 0 2;-1 0 1];
hy=[-1 -2 -1;0 0 0;1 2 1];
mask=sqrt(hx.^2+hy.^2);
result=conv2(image,mask);
For detail, you can look here, and implement accordingly.

Community Treasure Hunt

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

Start Hunting!