Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!