0

我正在尝试将矩阵传递给 dct2 函数,但它显示错误。我正在使用 matlab 版本 R2012a。我有一个矩阵 B,它只是用作如下参数

B = dct2(A);

disp(B); 

错误是这样显示的

Undefined function 'dct2' for input arguments of type 'uint8'.

Error in image_dct (line 24)
B = dct2(A);
4

1 回答 1

1

You have to have the image processing toolkit in order to use that. Assuming you have that, then it should be just as simple as you listed.

于 2012-11-27T21:41:14.517 回答