please help : Subscripted assignment dimension mismatch. Error in dct (line 13) imred(:,:,1) = uint8(red);
1 回表示 (過去 30 日間)
古いコメントを表示
function dct(I) coder.extrinsic('dctmtx');
%dctmtx - Compute discrete cosine transform matrix. T = dctmtx(8); red = double(I(:,:,1)); coder.extrinsic('imred'); imred = zeros(8,8);
imred(:,:,1) = uint8(red);
B = blkproc(imred,[8 8],'410*x*500',T,T'); mask = [16 11 10 16 24 40 51 61; 12 12 14 19 26 58 60 55; 14 13 16 24 40 57 69 56; 14 17 22 29 51 87 80 62; 18 22 37 56 68 109 103 77; 24 35 55 64 81 104 113 92; 49 64 78 87 103 121 120 101; 72 92 95 98 112 100 103 99]; B2 = blkproc(B,[8 8],'410.*x',mask); I2 = blkproc(B2,[8 8],'410*x*500',T',T);
2 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!