To compute GLCM, the following steps are generally followed: 1. Gray Level Quantization: Reduce the number of gray levels in the image to a manageable number. 2. Pixel Pair Counting: For a given distance and angle, count the occurrences of pixel pairs with specific gray level values. 3. Normalization: Normalize the matrix to make the sum of all elements equal to one.