Info

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

what is the meaning of this code?

1 view (last 30 days)
Md.Simul Hasan Talukder
Md.Simul Hasan Talukder on 29 Jan 2019
Closed: MATLAB Answer Bot on 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 Comment
Stephen23
Stephen23 on 29 Jan 2019
Edited: Stephen23 on 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.

Answers (2)

Fangjun Jiang
Fangjun Jiang on 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 on 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.

This question is closed.

Community Treasure Hunt

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

Start Hunting!