How to create database to store values
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
I have extracted two eatures of an image and have saved it in a variable
A=[f1 f2]%f1,f2 features
now i have 100 images and i want to save it to database,so finally my database will contain values of size 100x2
please help
採用された回答
Sabarinathan Vadivelu
2012 年 12 月 29 日
編集済み: Sabarinathan Vadivelu
2012 年 12 月 29 日
for i = 1 : 100 % 100 is number of images
A{i} = [f1 f2]; % make A as a cell
end
save('features.mat','A'); % create database
10 件のコメント
Pat
2012 年 12 月 29 日
i have used 2 uiget file to select different images say fingerfrint and iris,extracted features and saved them a=[f1 f2];
now if i select other finger and iris image the features must be added in same database
Sabarinathan Vadivelu
2012 年 12 月 29 日
Yes like that only it will work. Put that inside the for loop.
Pat
2012 年 12 月 29 日
for i=1:100
if i dont know how many files am choosing ,what must be done
Sabarinathan Vadivelu
2012 年 12 月 29 日
for i = 1 : 2
[file path] = uigetfile('*.jpg','Select the image');
I = imread(strcat(path,file));
% Extract the feautures
% f1 f2 are generated
A{i} = [f1 f2];
end
save('features.mat','A');
Sabarinathan Vadivelu
2012 年 12 月 29 日
for 100 images, It is not possible to select all the 100 images manually, So
srcFiles = dir('E:\New Folder\*.jpg') % the folder in which ur images exists
for i = 1 : length(srcFiles)
filename = imread(['E:\New Folder\',srcFiles(i).name]);
inImage = imread(filename);
% Generate the features f1 and f2
Feature{i} = [f1 f2];
end
save('featuresextract.mat','Feature');
Pat
2012 年 12 月 29 日
I am using 2 uigetfile
one for face f1 and other for iris f2
A=[f1 f2],
if am choosing more images,how to append it to the database
Sabarinathan Vadivelu
2012 年 12 月 29 日
See the above comment. I answered for that also
saranya
2014 年 2 月 7 日
how to confirm that these values are stored..
Srikanth
2014 年 2 月 7 日
I have 1000 images of database and 4 features extracted for each image using graycoprops for glcm ... i wanted to create a mat file.... please could u help me in creating a mat file...
AJ
2019 年 11 月 9 日
Unable to perform assignment
because the left and right sides
have a different number of
elements.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
タグ
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
