Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Can someone help me to understand this loop

1 vue (au cours des 30 derniers jours)
Mo
Mo le 6 Fév 2012
Clôturé : MATLAB Answer Bot le 20 Août 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 commentaires
Andrew Newell
Andrew Newell le 6 Fév 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 le 7 Fév 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

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by