Writing a code to find concavity/convexity between points

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?

Answers (1)

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:

Products

Release

R2019a

Asked:

on 15 Jul 2022

Answered:

on 16 Jul 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!