MATLAB Answers

Andrew
0

Increasing filter size of edge detector

Asked by Andrew
on 7 Apr 2014
Latest activity Commented on by Nitin
on 8 Apr 2014
Hello,
I am looking at using edge detectors to detect edges in my images but I as wondering if there was a way of increasing the size of the filters? For example increase Sobel or Prewitt from a 3 x 3 array to a 5 x 5 array or bigger. I am looking to see what the effect of a larger window will have on my edge detection.
Thanks, Andrew

  0 Comments

Sign in to comment.

2 Answers

Answer by Nitin
on 7 Apr 2014
Edited by Nitin
on 7 Apr 2014

There is a nice thread on stackoverflow which might give you the values of the filter you are looking for.

  2 Comments

Thanks for the response.
I have looked into fspecial to do this but you can't seem to change the size of sobel and prewitt. It also appears to be the same with kosevi that you mentioned. Ideally what I want to do is take the edge detectors in MATLAB and edit the search area (I hope this makes sense).
Nitin
on 8 Apr 2014
Sorry, I have updated my answer. Hopefully this will help

Sign in to comment.


Answer by Image Analyst
on 7 Apr 2014

You can try difference of Gaussians or something. Use fspecial to build the Gaussians. DOG filters are common edge filters.

  0 Comments

Sign in to comment.