Sparse coding and its applications in computer vision