concatenation of array structure
이전 댓글 표시
% 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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!