<div dir="ltr">Hello,<div><br></div><div>I have produced a 2D binary edge map from the canny edge detection tool that identifies circle-like edges in my photo. </div><div><br></div><div>My question is if my binary edge map has many edges that enclose a space, how can I use this map to crop the original photo to make many smaller photos of those enclosed spaces. <br></div><div><br></div><p class="separator" style="text-align: center; clear: both;"><a imageanchor="1" href="https://lh3.googleusercontent.com/-KCm4EGMW85I/V6DOCVSpTQI/AAAAAAAACeM/WraIjvmOl2M67wWfTskMKwjJ-wYmxALOQCLcB/s1600/Screen%2BShot%2B2016-08-02%2Bat%2B9.42.29%2BAM.png" style="margin-left: 1em; margin-right: 1em;"><img src="https://lh3.googleusercontent.com/-KCm4EGMW85I/V6DOCVSpTQI/AAAAAAAACeM/WraIjvmOl2M67wWfTskMKwjJ-wYmxALOQCLcB/s320/Screen%2BShot%2B2016-08-02%2Bat%2B9.42.29%2BAM.png" border="0" style="" width="234" height="320"></a></p><div><br></div><div>In the image above, one can see 6 circle-like objects whose perimeter has been detected. From this, I would like to create 6 arrays that represent the portions of the original image enclosed by these edges.</div><div><br></div><div>What tools might I use to achieve this? </div><div><br></div><div>Thank you</div></div>