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!