필터 지우기
필터 지우기

Save Movie Video to Computer

조회 수: 18 (최근 30일)
ssmith
ssmith 2021년 10월 31일
댓글: Image Analyst 2021년 11월 10일
I have almost 600 dcm files saved into one large folder that I want to load into my MATLAB code to read the data files and print out a grayscale image. I am not sure how to call the 600 dcm files. I tried dicomread but it is not reading. Any help would be appreciated.
  댓글 수: 47
ssmith
ssmith 2021년 11월 10일
@Walter Roberson Do you know how to use VideoWriter and writeVideo to save my movie player video to my computer folder?
Walter Roberson
Walter Roberson 2021년 11월 10일
Yes, just like the VideoWriter documentation shows for those functions. Just make sure that when you pass the file name to VideoWriter() that you pass the complete path, such as
filename = fullfile(output_directory, 'XY_view.avi');
obj = VideoWriter(filename);

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2021년 11월 9일
@ssmith, please see a variety of demos attached where I deal with videos.
You should be able to adapt one of them to make your video. For example to create a zoomed video, extract the portion of the image you want to zoom into, then resize it, then write it to the output video.
  댓글 수: 6
ssmith
ssmith 2021년 11월 9일
편집: ssmith 2021년 11월 9일
data = folder('scans');
scans = data;
implay(scans);
I think I need to use VideoWriter but I am not sure how to do that
Image Analyst
Image Analyst 2021년 11월 10일
"folder()" is not a function. In my ExtractMovieFrames.m file, I show you how to create a movie from a bunch of individual still images. Use that.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by