I am trying to locate objects in an image, such as the two squares in the attached image. I then want to compare the objects dimensional accuracy relative to the intended shape. This means I should know the general shape and location of each object in the image. Normally it would be no problem to find the shapes with imbinarize() or edge() but the objects are transparent and the boundaries are too faint so all of the edge detection methods I have tried do not accurately pick up the objects edges. Just looking at the image its very obvious to the eye where these objects are so it seems like there should be a way to identify these edges.