how can make a dataset of images?
Show older comments
I provided a code that gets an initial image as input and gives me 4 images as result. I should run this code as loop that user enters an initial images. in this loop every time I should save all the results because I want to make a dataset of these images and then do feature extraction. how can I do this? Can I use structure for this? I think that we can imagine every image as a matrix but I don't how we can do this .I think I should have a dataset of images like this:

but I dont know how can make this.do you think this idea is rational?or I should change my approach.
I appreciate your helps and supports in advanced.
Accepted Answer
More Answers (2)
Image Analyst
on 15 Jun 2015
0 votes
Why can't you do feature extraction immediately after you create them, and not worry about saving these intermediate images? Why do you have to save them all? If, for some reason you do, then I'd just save them in .mat files until you need them at some later time.
7 Comments
jack nn
on 15 Jun 2015
Walter Roberson
on 15 Jun 2015
You could also use cell arrays:
datacell{end+1} = {image1, image2, image3, image4};
and then datacell{K}{3} for the third image of the K'th set.
jack nn
on 15 Jun 2015
Edited: Walter Roberson
on 15 Jun 2015
Walter Roberson
on 15 Jun 2015
I suggest starting with
datastruct = struct('IMG1', {}, 'IMG2', {}, 'IMG3', {}, 'IMG4', {});
jack nn
on 15 Jun 2015
Bheki Ngobe
on 14 Dec 2015
Hi
I am trying out this code, but how I tell matlab the location of my images ? (I am them stored in a folder). Thanks in advance
Image Analyst
on 14 Dec 2015
Bheki, see the second code chunk in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Alternatively, see this to get up to speed quickly with a nice GUI: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
mukul jain
on 18 Feb 2017
0 votes
algorithm for identifying near surface/sub surface targets using hyperspectral image through Matlab. please guide me
1 Comment
Walter Roberson
on 18 Feb 2017
Please create a new Question for that topic; it has nothing to do with this Question.
Categories
Find more on Deep Learning for Image Processing 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!