A MATLAB toolbox for 3D reconstruction of images