database of images in matlab

dataBase=cell(5,1);
for i=1:5
dataBase{i}=imread(['Images/Database/' int2str(i) '.jpg ']);
end
save dataBase dataBase
where should be our files stored so that imread function in above code can read them.

Answers (1)

Walter Roberson
Walter Roberson on 7 Aug 2015
In the folder Images/Database relative to the current folder.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!