title: Compare two masks to determine which one is more of a rectangle shape than another -> Measuring Rectangularity
body: <p>I have two masks containing two shapes that are close to being rectangle shapes.<br />
  Example mask (yellow):<br />
  <a href="https://i.stack.imgur.com/WUjLN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WUjLN.png" alt="enter image description here" /></a></p>
  <p>Now I want to determine which one of those masks is closer to being an actual rectangle than another.</p>
  <p>Is it possible to achieve it?</p>