Given that there is an image with objects in it, is there any method in computer vision to determine the z-ordering of objects. For an ideal image of three circles overlapping, I can determine that it is three circles overlapping and determine which is the closes to me in this image.
Therefore for any given image, is there any method in computer vision to determine the z-ordering of segmented parts?
To clarify, I don't mean for only clean geometric objects such as circles, I mean for any objects which have been segmented.
I have a particular application of this in mind, I want to be able to reverse engineer images into layers, then I can pass the image split into layers into photoshop to speed up some of what we do practically with photoshop which is splitting images into layers. Also layers which are partially hidden can then be filled in automatically by the computer, layers can be moved on top of each other.