3d movie image to depth map

Hello. Do you know how you can make stereograms from black and white depth maps? I sort of want to reverse this process. I want to make a depth map from one of those 3d images that you use the glasses to see. Is this possible? See the image for an example.

If it is, there is a huge amount of possible cheap “motion capture”/“3d scanning” around the corner.