title: Identify Shapes with Matlab
body: <p>I created some MATLAB code, that find somes shapes in an image
  using <strong><code>regionpros</code></strong> and <strong><code>bwbounaries</code></strong>   functions. </p>
  
  <p>I have:                                           </p>
  
  <pre><code>STATS = regionprops(L, 'all');
  </code></pre>
  
  <p>and from <code>STATS</code> I could easily find all my shapes Area and Perimeter.
  My problem is    the following: I want to find the "square" shapes and I do 
  in all shapes the following calculation <code>16 * area / (perimeter * perimeter)</code>, 
  if this value is near one then I "may"                      have a square. But other shapes too like
  circles or rectangles are near one too. (Also some squares could be rotated
  in the image).</p>
  
  <p>Is there a better way to distinguish the shapes (like circles, triangles ...)?</p>