How can i load my own data set of images ?

19 views (last 30 days)
Melih Ayhan
Melih Ayhan on 28 Dec 2015
Commented: Sakshi Sharma on 1 Jul 2021
Hello everyone,
I'm working on cnn to apply deep learning algorithms on a dataset of pictures that i've created. But i couldn't load those images on matlab. Furthermore, if there is anyone working on cnn, i need to do object classification among them, does have any idea how to classification, train and test processes please help me. Thanks already.
  4 Comments
Melih Ayhan
Melih Ayhan on 29 Dec 2015
Basically it works on mnist dataset; When im doing below
load mnist_uint8;
But when i'm trying to do this:
load my_dataset;
It says No such file or directory...
my_dataset is a folder and also contains two different folders which has 100 images. I'm trying to appyl cnn on those photos but i cant load the database on workplace. (i'm new on matlab, if this is a silly question, im sorry about it)
Thanks already :)
Sakshi Sharma
Sakshi Sharma on 1 Jul 2021
Hi, I am also doing the same but loading my own dataset of 25 images. Can you please guide me with whole process and code with the same, as I am assuming you had already done with this question solution.
Thanks!

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 28 Dec 2015
  5 Comments
Melih Ayhan
Melih Ayhan on 29 Dec 2015
Thanks for the answer,
folder = 'c:/whatever';
myImages = imageSet(folder);
this one works
But i think i need to convert the whole folder into a *.mat file to apply my cnn. Do you know a way to do that ?
Image Analyst
Image Analyst on 29 Dec 2015
Use code from the FAQ to open a sequence of files: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Then, in the middle of the loop, take whatever variables you want to save in .mat files and save them with a call to load().

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!