来隔壁,我手把手教你A=im2double(imread('Barbara256.bmp'));D=dctmtx(size(A,1));dct=D*A*D';figure,imshow(dct);hist(dct)