フィルターのクリア

Can implay be launched with the window a specific size and the video at full vs. zoomed in?

3 ビュー (過去 30 日間)
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 件のコメント
Walter Cromer
Walter Cromer 2023 年 6 月 15 日
I'm guessing no one knows how to do this. I still haven't found a way. It significantly slows down our reviews to have to click to maximize the window each time a video segment is shown. So, how do we get this in for an enhancement if it can't be done?

サインインしてコメントする。

採用された回答

Suraj
Suraj 2023 年 6 月 21 日
Hi Walter
Unfortunately, the ability to set the size of the implay() viewer is not present in the current release of MATLAB and the only way to view the video in maximum possible resolution is to maximize the window.
However, the development team is aware of this enhancement, and is working on this. Hence, this may be added in one of the future releases.
Regards,
Suraj.

その他の回答 (1 件)

Nikhil Baishkiyar
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.

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by