3D shape reconstruction matlab code. It used shape from defocus technique with divergence. You can reconstruct 3D shape with only two different depth images.
This package contains the matlab codes implementing the ScSPM algorithm described in CVPR 09 paper "Linear Spatial Pyramid Matching using Sparse Coding for Image Classification".