create set of set of images listed in a file.
Show older comments
HI,
i am a beginner student in MATLAB i want to know how can i create file to store a set of (JPEG format)images as i want to load this images from this file in MATLAB
10 Comments
Jan
on 29 Dec 2012
This is possible with TIFF, MAT, GIF, AVI and a much more formats. Please post, what you exactly want by editing the question, not by adding a comment.
Walter Roberson
on 29 Dec 2012
What kind of file should the end result be?
Image Analyst
on 29 Dec 2012
Edited: Image Analyst
on 29 Dec 2012
They're already in files, though separate files, not one file with hundreds of images in it. Maybe she means how to read a file into a MATLAB variable. If so, use imread(). If she needs to write a MATLAB variable into a file on disk, use imwrite().
Walter Roberson
on 29 Dec 2012
Are you asking for a .mat file? For an SQL database? For DICOM? Are the images all the same size and you are trying to create a volume?
I am not sure why you are creating a file to store the images? Why not just load the images in MATLAB ?
Image Analyst
on 30 Dec 2012
Especially since she already has the images in jpeg files. Why create another file when you already have files? Losy, can you answer that?
Jan
on 30 Dec 2012
A useful answer requires, that out questions have been cleared at first.
losy
on 30 Dec 2012
Image Analyst
on 30 Dec 2012
Well which one is it? Surely you must have a preference because those are drastically different things. For saving to an image file I already asked you to look at the TIFF class - see the help.
Walter Roberson
on 30 Dec 2012
If you can explain why you need to store them in a file before doing the PCA, instead of just loading them at the time of doing the PCA, then we could possibly recommend an approach.
Answers (1)
Image Analyst
on 29 Dec 2012
0 votes
Look at the TIFF class. I think (though I've never done it) that it can save multiple images into one file.
Categories
Find more on Image Data 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!