Matlab code for computer vision