Info
This question is closed. Reopen it to edit or answer.
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 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!