Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将矩阵传递给 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);
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.