Save multiple images in a folder
显示 更早的评论
After I captured the image it save the image.But when I captured again another image and when I save it, the previous image replaced by the new image. I want to save new image not to replace it. How will I do that?
回答(2 个)
Massimo Zanetti
2016-10-4
3 个投票
Change its name
1 个评论
Muhammad Hammad Malik
2018-8-20
without changing the name how can we save different images with out overwrite?
Thorsten
2016-10-4
You have to use a new name for each image; e.g., for your i'th image:
filename = sprintf('myimage%02d.png', i);
4 个评论
Hazel Sialongo
2016-10-4
for i = 1:10
I = ... % get image I from webcam
filename = sprintf('myimage%02d.png', i);
imwrite(filename, I)
end
Hazel Sialongo
2016-10-4
Muhammad Anwaar
2019-1-31
by this u can take image through webcam and u can save it
webcam = webcam(1);
preview(webcam);
img = snapshot(webcam);
imshow(img);
imwrite(img, 'ab.png');
类别
在 帮助中心 和 File Exchange 中查找有关 Deblurring 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!