Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
RAMESH MUNIRATHINAM
RAMESH MUNIRATHINAM am 6 Dez. 2014
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 Kommentare
Image Analyst
Image Analyst am 6 Dez. 2014
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
RAMESH MUNIRATHINAM am 6 Dez. 2014
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by