Matlab Code to convert a 2D Image(s) to 3D