Filter löschen
Filter löschen

To store images in a Matlab Database

1 Ansicht (letzte 30 Tage)
Ria3242
Ria3242 am 8 Sep. 2015
Kommentiert: Ria3242 am 15 Okt. 2015
I have jpg images which I generated in my GUI. Furthermore, I want to save them in a Database.mat file along with a name i.e. in a two dimensional array having rows as names and a column of images. I am not getting through how to create the database.mat file and insert images in it as I have less proficiency in Matlab. Please help me as it is the part of my thesis. Thanks in advance!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Sep. 2015
Use a table() data structure if you want to index by row names. For example,
dinfo = dir('*.tif');
T = table();
for K = 1 : length(dinfo)
filename = dinfo(K).name;
filecontent = imread(filename);
T{filename,1} = filecontent;
end
T.Properties.VariableNames{1} = 'ImageContent';
  7 Kommentare
Walter Roberson
Walter Roberson am 8 Okt. 2015
Statistics has the similar Dataset Array -- though I do not know if it existed that far back.
Ria3242
Ria3242 am 15 Okt. 2015
okay Sir. I'll surely try it. Thank you so much for your help!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by