I have been looking for a method to find the width of a line.
I found the solution(link: http://www.mathworks.com/matlabcentral/answers/88645-average-width-of-lines),
"sum up the image to get the area, then skeletonize the image and sum up that image to get the total length.Then divide the area by the length."
Can anyone please explain the following? 1. what is summing up to get image area? 2. what is summing up skeletoniized image to get length? I did not get this.
I have to find the thickness of a string from a given image. I can take the image of any dimension and quality I want. How do i measure the thickness of a string? That is what I was trying to resemble as width of a line. Essentially, thickness of a string can be thought as width of a line, I think.
Moreover, I can not assign any unit to my measurement i.e., m/cm/mm. So I have to measure some sort of ratio to represent the thickness and reach a decision.
My outcome should be Yes or No based on the thickness. For example, if the thickness is greater that a certain value I would not take the string to process.
The string can be made of anything.