Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I make all the frames that I have extracted from a video and saved in a folder to perform the watershed segmentation?
1 次查看(过去 30 天)
显示 更早的评论
So,I extracted and saved all the frames from a video,I was supposed to read,in a folder and that folder appears in matlab. I performed watershed segmentation on one frame,now I want all the frames that I have extracted to go through the watershed segmentation.My watershed function works fine but I couldn't get all the frames to go through the segmentation function.
Below is the code for the extraction of the frames-
%% VIDEO FRAMES close all clear all vidobj=VideoReader('cloud.mp4');
Frame_No=vidobj.NumberOfFrames;
%for i=1:Frame_No
for i=1:100
imwrite(read(vidobj,i),strcat('C:\Users\PRACKKZ\Documents\MATLAB\cloudframes\',num2str(i),'.png'))
end
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!