Info

This question is closed. Reopen it to edit or answer.

Can someone help me to understand this loop

1 view (last 30 days)
Mo
Mo on 6 Feb 2012
Closed: MATLAB Answer Bot on 20 Aug 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 Comments
Andrew Newell
Andrew Newell on 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 on 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

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!