Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Can someone help me to understand this loop

1 visualización (últimos 30 días)
Mo
Mo el 6 de Feb. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentarios
Andrew Newell
Andrew Newell el 6 de Feb. de 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 el 7 de Feb. de 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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by