how to find the width of edges in matlab?
Show older comments
I am able to find the edges of an image using sobel or canny filter. But I cant calculate the width of the edges.
Actually I want to do the following:
find the width of all horizontal and vertical edges and sum up altogether and store in a variable, say W1
Then find the width of other (non horizontal and vertical) edges. Then multiply each edge width by a factor sqrt(2). After sum up altogether and store in a variable say w2.
Finally perform (w1+w2)/N where N is the no of total edges in the image.
5 Comments
Lahiru
on 17 May 2014
Did you manager to complete your work? I appreciate if you could show me how you accomplished this. I too have an edge map, as a result of applying the Canny edge detector to a grey-scaled image. I now want to scan each pixel in the image (row-wise), and if I come across an edge, I need to find its local min and max. I need to find the total number of edges + the local min and max values of each and every edge. Can you help please?
Image Analyst
on 17 May 2014
I'll tell you how when you ask your own, new question.
Lahiru
on 5 Jun 2014
Image Analyst
on 5 Jun 2014
Looks like I responded to that 3 weeks ago and you never replied.
Lahiru
on 5 Jun 2014
Oh, I'm really sorry, I just saw your response. I will reply in that thread. Thanks.
Accepted Answer
More Answers (0)
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!