Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Can someone help me to understand this loop

2 visualizzazioni (ultimi 30 giorni)
Mo
Mo il 6 Feb 2012
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commenti
Andrew Newell
Andrew Newell il 6 Feb 2012
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 il 7 Feb 2012
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

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by