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 日間)
Prachi Sharma
Prachi Sharma 2016 年 10 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by