concatenation of array structure
Show older comments
% 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
Accepted Answer
More Answers (0)
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!