Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

what is the meaning of this code?

1 Ansicht (letzte 30 Tage)
Md.Simul Hasan Talukder
Md.Simul Hasan Talukder am 29 Jan. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
for i = 0:3
for j = 0:3
temp = imread(strcat('output/img', num2str(4*i + j), '.tif'));
if j == 0
img = temp;
else
img = [img temp];
end
end
if i == 0
out = img;
else
out = [out; img];
end
end
imwrite(out, '1-merged_image.tif');
  1 Kommentar
Stephen23
Stephen23 am 29 Jan. 2019
Bearbeitet: Stephen23 am 29 Jan. 2019
"what is the meaning of this code?"
Nothing.
That code has no meaning.
Because its author did not bother to write any code comments or explanations, we have no idea what it is intended to do, or whether it is even suitable for doing it. Code without a specification is meaningless.

Antworten (2)

Fangjun Jiang
Fangjun Jiang am 29 Jan. 2019
You've been asking the same question many times yet none of the answers seem to answer your question. I suggest you run "demo" in MATLAB and then select "MATLAB" to "Getting started with MATLAB".

Walter Roberson
Walter Roberson am 29 Jan. 2019
it reads in output/img0.tif through output/img15.tif and arranges them as one larger image 4 across at aa time.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by