title: Determining the Length and Width of Objects in an Image with Java
body: <p>I want to be able to determine the length and width of all shapes in an image with a transparent background. Can anyone give me some tips in java on how to do this?</p>
  
  <p>Here is an example</p>
  
  <p><a href="https://i.stack.imgur.com/eOydM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eOydM.png" alt="enter image description here"></a></p>
  
  <p>Edit: All pixels within each shape do not have the exact same RGB value, however, they are shades of the same color.</p>