I'm trying to study how the texture representation is done using 2D autoregressive models. Although there are a lot of papers describing the theoretical aspects of the process, I'm finding it difficult to actually implement the algorithm to find the model parameters to represent a given texture. Is there an implementation guide or example Matlab or any other implementation code for 2D Autoregressive models for texture modelling?