MATLAB: Line length in image

image processinglenghtline

is there a way to get all the lenghts (in pixels) of curved lines in an images (like the one below)?
lenght being the total lenght of the lines (not just the the distance of X and Y)

Best Answer

Use bwdist() and look at the answer here for an example.
Related Question