Machine vision for three-dimensional scenes