how to write an updating image file after the update is over

1 次查看(过去 30 天)
if c=1:4
c=1
update(process)
c=2
update(process)
c=3
update(process)
c=4
update(process)
end
i have split the image into 4 subplots so that it will be easy for comparison
each time the value of c varies the image gets updated
i have used the imwrite code outside the loop, then also the total updated image is not been written in folder
only the image corresponding to condition c=4 is written inside the folder
please kindly help so that i could see some progress in the work
  2 个评论
Image Analyst
Image Analyst 2014-12-6
What loop? There is no for statement, only an if statement. And what imwrite()? Copy and paste your code in - don't try to retype it because that introduces errors.
RAMESH MUNIRATHINAM
for c = [1 2 3 4];
anyl = Filt(In,'bt');
if c == 1
i = 1;
elseif c == 2
i = 2;
elseif c == 3
i = 3;
else
i = 4;
end
figure(4);subplot(2,2,i);
imshow(anyl);
imshow gets updated
after this i have used the imwrite command to writing the image any1
but the image of c=4 alone was written in the folder i want to write the figure 4 which contains all 4 images corresponding to the condition

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by