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

조회 수: 2 (최근 30일)
reading folder containing images and storing their properties in a matrix
  댓글 수: 2
KSSV
KSSV 2016년 12월 7일
what properties? When you read an image you will get RGB matrix, which would be huge to store.
Gohan
Gohan 2016년 12월 7일
no sir im reading gray images and properties like ..energy,mean... i want to store them in column wise...for second image second column

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

채택된 답변

KSSV
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
Gohan
Gohan 2016년 12월 7일
i have used above code and im going to use ur code sir thanku sir

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by