필터 지우기
필터 지우기

To store images in a Matlab Database

조회 수: 1 (최근 30일)
Ria3242
Ria3242 2015년 9월 8일
댓글: Ria3242 2015년 10월 15일
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!

채택된 답변

Walter Roberson
Walter Roberson 2015년 9월 8일
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
Walter Roberson
Walter Roberson 2015년 10월 8일
Statistics has the similar Dataset Array -- though I do not know if it existed that far back.
Ria3242
Ria3242 2015년 10월 15일
okay Sir. I'll surely try it. Thank you so much for your help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by