I used the edge (canny) function to retain the edge-line (black and white TIFF image, so not a vector graphic) of a wiggled cell wall in a microscope image. I want to analyse the exact shape and distribution of the wiggles, however the cell walls are also curved across the picture (not just round). Does someone have experience in Matlab on how to straighten a curvature (perhaps convolution with another image that I could make of the cell wall shape without wiggles - but how can I do that with images)? How would you then analyze the final staightend but still wiggled line? (Locally fit to function/polynomail and derive?) I found the options Hough Transform (lines only) and bwtraceboundary (closed boundaries only), which both don't quite seem to fit.

P.s.:

This work helped me with an aspect of my Masters Thesis where I acknowledged this forum as well as lead contributors in it. Much later the lines of code, modified over years, were used for this Publication in Nature of mine:

Article Disorder in convergent floral nanostructures enhances signal...

Full read access: https://rdcu.be/b4uKQ

The full code is available here:

https://github.com/MakerTobey/Data-extraction-from-crossection-TEM-images-of-biophotonic-structures

And data here:

https://osf.io/4tpp2/

More Tobias Wenzel's questions See All
Similar questions and discussions