A digital image processing method determines the extent of blocking
artifacts in a digital image by first forming a column difference image
and averaging the values in the columns in the column difference image to
produce a column difference array. The average of the values in the column
difference array that are separated by one block width are computed to
produce a block averaged column difference array. Then, the peak value in
the block averaged column difference array is located, and the mean value
of the block averaged column difference array (excluding the peak value)
is calculated to produce a column base value, and the ratio between the
peak value and the base value are computed to produce a column ratio. The
foregoing steps are repeated in the row direction to produce a row ratio.
Finally, the column and row ratios are employed as a measure of the extent
of blocking artifacts in the digital image.