save more than one image in a matfile
Show older comments
i select an image from a folder and save it in a matfile..... then i load the matfile and display the image.....
[filename pathname]=uigetfile('*.tif','Select An Image');
inputImage=imread([pathname filename]);
save imageMatfile inputImage
how to save more than one image in the same matfile(not all images in folder, but only those i want).......using these select statements is it possible???...... please do reply....
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 4 Feb 2013
Saving your first image
im1={imread('first_image')}
save yourfile im1
Adding a new image
im1=imread('news_image')
im=load('yourfile')
im1=im.im1
im1{end+1}
save yourfile im1
4 Comments
Elysi Cochin
on 4 Feb 2013
Azzi Abdelmalek
on 4 Feb 2013
Edited: Azzi Abdelmalek
on 4 Feb 2013
im=load('yourfile')
im1=im.im1
for k=1:numel(im1)
figure
imshow(im1{k})
end
Elysi Cochin
on 4 Feb 2013
Azzi Abdelmalek
on 4 Feb 2013
Edited: Azzi Abdelmalek
on 4 Feb 2013
Have you used?
im=load('yourfile')
and when saving the first image
im1={imread('first_image')}
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!