What Does 20/400 Mean?

2 ビュー (過去 30 日間)
Jaewoo SHIN
Jaewoo SHIN 2016 年 10 月 12 日
回答済み: Brendan Hamm 2016 年 10 月 12 日
%%Create Video File Readers and the Video Player
% Create System Objects for reading and displaying the video
videoFileLeft = 'handshake_left.avi';
videoFileRight = 'handshake_right.avi';
readerLeft = vision.VideoFileReader(videoFileLeft, 'VideoOutputDataType', 'uint8');
readerRight = vision.VideoFileReader(videoFileRight, 'VideoOutputDataType', 'uint8');
player = vision.DeployableVideoPlayer('Location', [20, 400]);

採用された回答

Brendan Hamm
Brendan Hamm 2016 年 10 月 12 日
From the doc: "Location of bottom left corner of video window, specified as the comma-separated pair consisting of 'Location' and a two-element vector. The first and second elements are specified in pixels and represent the horizontal and vertical coordinates respectively. The coordinates [0 0] represent the bottom left corner of the screen. The default location depends on the screen resolution, and will result in a window positioned in the center of the screen."
So [20,40] corresponds to the bottom left hand corner of the Video Player in terms of pixels on the monitor.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by