function image = mInverseDCT8x8( coefficients, image_size ) M = 8; A = mDCT_A_Matrix( M ); [ row_max, col_max ] = size( coefficients ); image = zeros( size( coefficients ) ); for col = 1:8:col_max for row = 1:8:row_max image( row:row+7, col:col+7 ) = A'*coefficients( row:row+7, col:col+7 )*A; end end image = image( 1:image_size(1), 1:image_size(2) );