Can implay be launched with the window a specific size and the video at full vs. zoomed in?
이전 댓글 표시
My program stops to let the user review a section of video that may have an issue. I launch implay to show the video segment. Here's the line of code I use.
p = implay(MovieFilePath + "tempExamination.avi",5); % initialize in slow fps
It launches but the window is small and the it is zoomed in on the video. I would like to set the size of the viewer window and have it at 100% vs. zoomed in. I can't find anything that lets me do this with implay directly. Is there another way?
채택된 답변
추가 답변 (1개)
Nikhil Baishkiyar
2023년 6월 21일
편집: Nikhil Baishkiyar
2023년 7월 8일
It seems that there is a way to change the window size of implay window which I found at Matlab - implay's default size window - Stack Overflow
The input vector to set size is 4-element vector in the format [fromX fromY width height] so if you know the dimensions of your videos you can fill them in or use this code instead
vid = VideoReader("path");
%nFrames = vid.NumFrames;
vidHeight = vid.Height;
vidWidth = vid.Width;
p = implay("path")
set(findall(0,'tag','spcui_scope_framework'),'position',[150 150 vidWidth vidHeight]);
It works in my PC though this seems like an unofficial workaround.
카테고리
도움말 센터 및 File Exchange에서 DCAM Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!