Writing a code to find concavity/convexity between points
8 views (last 30 days)
Show older comments
I have points for a countour of a cross-section of a rock and naturally it has a many convex and concave surfaces. I want to write a code which assesses say a 1mm length at a time and specifies the concavity/convexity of that length and moves on to the next 1mm patch. How do I approach this?
0 Comments
Answers (1)
Image Analyst
on 16 Jul 2022
Maybe this:
props = regionprops(mask, 'Solidity');
solidity is the ratio of the actual blob mask to the convex hull of the mask.
If you have any more questions, then attach your image and code to read it and process it to get the mask orcontour. Use the paperclip icon after you read this:
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!