Measuring the irregularity of an object border : I have the image below and would like to measure the border irregularity of the image. That is, to specify if the border (edge) is regular or not.

[![enter image description here][1]][1]

I have been looking around, and found mostly research papers on the topic. Is there some function I can use in `Python` or `MATLAB`?

Thanks.


  [1]: https://i.stack.imgur.com/stQI5.gif