3D shape reconstruction matlab code. It used shape from defocus technique with least squares. You can reconstruct 3D shape with only two different depth images.