Classification of the equilibria and Gamma-convergence for the discrete Perona-Malik functional