Subscripted assignment dimension mismatch
古いコメントを表示
Hi everybody, can someone please help me with this error, below is my code
tic
X = imread('T1.jpg');
[CR,BPP]=wcompress('c',X,'image_c.wtc','aswdr', 'maxloop',11 ,'wname','bior6.8' );
CR
Xc = wcompress('u','image_c.wtc');
time=toc
set(gcf,'Color',[1 1 1])
subplot(1,2,1); image(X);
axis square;
title('Original Image')
subplot(1,2,2); image(Xc);
axis square;
title('Uncompressed Image')
xlabel({['Compression Ratio: ' num2str(CR,'%1.2f %%')], ...
['BPP: ' num2str(BPP,'%3.2f')]})
Image T1.jpg is truecolor image, class is uint8.
When I start the program, display an error
??? Subscripted assignment dimension mismatch.
Error in ==> wtc_aswdr>wtc_aswdr_enc at 118
scan_Plan_INI(:,bp) = scan_IDX+(bp-1)*nb_PIX;
Error in ==> wtc_aswdr at 32
case 1 , [varargout{1:nbout}] = wtc_aswdr_enc(varargin{:});
Error in ==> wtcmngr at 58
varargout{1} = feval(funNAME,'enc',varargin{2:end});
Error in ==> wcompress at 426
Encoded_wtbx_DEC = wtcmngr('enc',method_COMP,X, ...
Error in ==> simulacija at 4
[CR,BPP]=wcompress('c',X,'image_c.wtc','aswdr', 'maxloop',11 ,'wname','bior6.8' );
Thanks in advance!
2 件のコメント
Chandra Kurniawan
2011 年 11 月 29 日
Would you upload your 'T1.jpg' image??
Walter Roberson
2011 年 11 月 29 日
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Images についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!