Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can someone help me to understand this loop

1 回表示 (過去 30 日間)
Mo
Mo 2012 年 2 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
c = 0;
for j = 1:data:data*no_gb
c = c + 1;
tmp_tr = img_out_train(:,:,c);
tmp_tr = im2double(tmp_tr);
[cF] =DCT_block_palm_16x16(tmp_tr,overlap);
GB_pony(j:data_n*c,:) = (cF(1:data_n,:));
end
  2 件のコメント
Andrew Newell
Andrew Newell 2012 年 2 月 6 日
We can't tell you much based on the information provided. Apparently img_out_train is a set of intensity images (one for each value of c) and you are doing something to them using a mystery function DCT_block_palm_16x16.
Mo
Mo 2012 年 2 月 7 日
Thanks Andrew. Yes img_out_train is a set of images. DCT_block_palm_16x16 is a call function.There is a mistake on the first statement.Below is the correct code.what i dont understand is the last statement of the loop.Your help will be much appreciated
data_n =20, no_gb=32
c = 0;
for j = 1:data_n:data_n*no_gb
c = c + 1;
tmp_tr = img_out_train(:,:,c);
tmp_tr = im2double(tmp_tr);
[cF] =DCT_block_palm_16x16(tmp_tr,overlap);
GB_pony(j:data_n*c,:) = (cF(1:data_n,:));
end

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by