edge width estimation of an image after applying canny edge algorithm
Show older comments
I am doing a project on binarization of degraded document images. I am not able to develop the code for edge width estimation of canny edge image. I am submitting the algorithm for the paper as shown below.Can anyone atleast guide me with the matlab commands or code of the algorithm as shown below,if not completely atleast partially so that i can move forward.
favorite I want the matlab code for the canny edge image as per the algorithm as shown below. Algorithm for edge Width Estimation I=canny edge image 1. Get the width and height of I 2. for Each Row i = 1 to height in Edg do 3. Scan from left to right to find edge pixels that meet the following criteria: • its label is 0 (background); • the next pixel is labeled as 1(edge). 4. Examine the intensities in I of those pixels selected in Step 3, and remove those pixels that have a lower intensity than the following pixel next to it in the same row of I . 5. Match the remaining adjacent pixels in the same row into pairs, and calculate the distance between the two pixels in pair. 6. end for 7. Construct a histogram of those calculated distances. 8. Use the most frequently occurring distance as the estimated stroke edge width EW. Awaiting a positive reply.
Answers (0)
Categories
Find more on Object Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!