Acquisition of 3-dimensional shapes from images