concatenation of array structure
Afficher commentaires plus anciens
% concatenation output of frames in a video
[ video_file_name,video_file_path ] = uigetfile({'*.avi';'*.MP4'},'Pick a video file');
if(video_file_path == 0)
return;
end
input_video_file = [video_file_path,video_file_name];
videoObject = VideoReader(input_video_file);
vid=videoObject;
numFrames = vid.NumberOfFrames;
n=numFrames;
%
for i = 1:2:n
frames = read(vid,i);
grayImage = rgb2gray(frames);
thresholdLevel = graythresh(grayImage);
binaryImage = im2bw( grayImage, thresholdLevel);
end
% the Problem is that how to store the output of "binaryImage" of first iteration till the last iteration in an Output Array. ie (binary output of Frame_1, binary output of frame 2 . . . . . till last frame) Plz Help
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Video Formats and Interfaces dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!