From Dictionary of Visual Words to Subspaces: Locality-constrained Affine Subspace Coding