MATLAB Answers

Increasing filter size of edge detector

37 views (last 30 days)
Andrew
Andrew on 7 Apr 2014
Commented: 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.

Answers (2)

Nitin
Nitin on 7 Apr 2014
Edited: 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

Andrew
Andrew on 7 Apr 2014
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
Nitin on 8 Apr 2014
Sorry, I have updated my answer. Hopefully this will help

Sign in to comment.


Image Analyst
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.

Sign in to answer this question.