hi i want to read a folder of images and i have to store their properties in a matrix...i.e, first image properties in first column and second image properties in second colum likewise..help me
1 回表示 (過去 30 日間)
古いコメントを表示
reading folder containing images and storing their properties in a matrix
2 件のコメント
KSSV
2016 年 12 月 7 日
what properties? When you read an image you will get RGB matrix, which would be huge to store.
採用された回答
KSSV
2016 年 12 月 7 日
編集済み: KSSV
2016 年 12 月 7 日
clc; clear all ;
F = dir('*.jpg'); % your images extension and you are in the present directory of images
nimage = length(F) ; % length of images
E = zeros(nimage,1) ; % initiliaze energy
M = zeros(nimage,1) ; % intiilize mean
% loop for each image
for ii = 1:nimage
I = imread(F(ii).name); % read image
% do what you want, let Ei, Mi be calculated energy and mean
% E(ii) = Ei ;
% M(ii) = Mi ;
end
3 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!