%*********************************************************************************************************************************
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%reading the avi file frame by frame%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%declare array
M_Array=[];
% reading one frame at a time and storing it in to array
for i=1:my_movie_info.NumFrames;
mov=aviread(‘redcup.avi’,i);
M_Array=[M_Array mov];
end
هاد الكود بقرأ ملف فيديو وبخزن كل فرام لوحده داخل المصفوفة
الأن الأسئلة :
1-بدي احول كل frame to image
2- بدي اعرض كل image بحيث ممكن اشتغل على كل image لوحدها
% file that we are gonna read
my_movie_info = aviinfo('redcup.avi');
my_movie_info.Filename;
my_movie_info.FileSize;
my_movie_info.FileModDate;
my_movie_info.NumFrames;
my_movie_info.FramesPerSecond;
my_movie_info.Width;
my_movie_info.Height;
my_movie_info.ImageType;
my_movie_info.VideoCompression;
my_movie_info.Quality;
my_movie_info.NumColormapEntries;
%*********************************************************************************************************************************
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%reading the avi file frame by frame%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%declare array
M_Array=[];
% reading one frame at a time and storing it in to array
for i=1:my_movie_info.NumFrames;
mov=aviread('redcup.avi',i);
M_Array=[M_Array mov];
end
السلام عليكم
يمكن حل مشكلتك بدالة frame2im () لتحويل الفريم إلى إمج كما يمكن إستخدام العكس وهي im2fram() . وفقك الله. ولأي استفسار فأنا على أتم الاستعداد
باش مهندس هل أجد عندك ملف فيديو من نوع avi يحمل وجه انسان …أنا emily وإميلي هو amola_elect_eng@yahoo.com من فضلك لو عندك ما تبخل عليه.سلام