main Content

视频查看器

显示图像或视频帧

  • 图书馆:
  • 计算机视觉工具箱 /水槽

  • 视频查看器block

Description

视频查看器block displays images or video frames. This block provides simulation controls to play, pause, and step while streaming a video or image sequence. This block also provides tools to analyze the pixels of a region of interest.

视频查看器窗口

视频查看器的功能

  • 播放控制 - 使用运行,向前和停止按钮进行控制视频播放。

  • 输出到图像查看器- 使用图像查看器应用,选择File>输出到图像工具。或者,选择工具栏中的“导出到图像工具”按钮。有关更多信息,请参阅Get Started with Image Viewer App

  • 像素区域分析 - 要使用像素区域工具在单独窗口中打开显示的图像,请选择tools>像素区域。Alternatively, select the Inspect pixel values button in the toolbar. For more information about Pixel Region tool, see粉碎区

Ports

Input

展开全部

输入图像或视频,指定为一个m-by-n矩阵,m-by-n-by-t数组,或m-by-n-by-C-by-t大批。tis the number of frames in a video or image sequence, andC是颜色通道的数量。

依赖性

要启用此端口,请选择One Multi-Dimensional Signal范围。默认情况下启用此参数。

数据类型:单身的|双倍的|int8|int16|int32|UINT8|uint16|UINT32|布尔|万博1manbetxsimulink.imageType

图像或视频的红色组成部分,指定为m-by-n矩阵或m-by-n-by-t大批。tis the number of frames in a video or image sequence.

笔记

输入到r,,,,G,,,,andbports must all have the same dimensions and data type.

依赖性

要启用此端口,请选择单独的颜色信号范围。

数据类型:单身的|双倍的|int8|int16|int32|UINT8|uint16|UINT32|布尔

图像或视频的绿色组成部分,指定为m-by-n矩阵或m-by-n-by-t大批。tis the number of frames in a video or image sequence.

笔记

输入到r,,,,G,,,,andbports must all have the same dimensions and data type.

依赖性

要启用此端口,请选择单独的颜色信号范围。

数据类型:单身的|双倍的|int8|int16|int32|UINT8|uint16|UINT32|布尔

图像或视频的蓝色成分,指定为m-by-n矩阵或m-by-n-by-t大批。tis the number of frames in a video or image sequence.

笔记

输入到r,,,,G,,,,andbports must all have the same dimensions and data type.

依赖性

要启用此端口,请选择单独的颜色信号范围。

数据类型:单身的|双倍的|int8|int16|int32|UINT8|uint16|UINT32|布尔

参数

展开全部

File

要访问这些参数,请选择File视频查看器窗口中的菜单

选择此参数以在模拟开始时自动打开视频查看器窗口。清除此参数,以防止视频查看器窗口在模拟开始时打开。

选择此参数以启用r,,,,G,,,,andb单独的颜色通道的输入端口。如果选择此参数,则One Multi-Dimensional Signalparameter clears automatically.

选择此参数以启用图片input port for one multi-dimensional signal. If you select this parameter, the单独的颜色信号parameter clears automatically.

文件>配置>编辑>核心

视频查看器配置参数使您能够更改图形用户界面(GUI)的行为和外观。

  • to open the Configuration dialog box and edit parameters, selectFile>配置>编辑

Core“配置”对话框中的选项卡列出了GUI的一般设置。

  • In theCore选项卡,选择General UI项目,然后单击特性button to open the General UI Properties dialog box.

选择this parameter to display the model name and full path to the source data in the title bar of the Video Viewer window. If you clear this parameter, the window displays a shortened name.

File > Configuration > Edit > Tools

视频查看器配置参数使您能够更改图形用户界面(GUI)的行为和外观。

  • to open the Configuration dialog box and edit parameters, selectFile>配置>编辑

tools“配置”对话框中的选项卡列出了与视频查看器块关联的工具。

  • In thetools选项卡,选择图像工具项目,然后单击特性button to open the Image Tool Properties dialog box.

选择此参数打开新的图像查看器图像序列中每个导出的视频框架或图像的窗口。

工具> colormap

Colormapparameters enable you to display an intensity image in various colormap formats and control the output intensity range. To access these parameters, selecttools>Colormapor pressC

笔记

Colormap参数仅用于强度图像。

此参数指定显示输入强度图像的colormap。这个块支持万博1manbetx灰色(256),,,,帕拉(256),,,,喷气式飞机(256),,,,hot(256),,,,骨(256),,,,and铜(256)colormaps.

选择此参数以启用最小andmax参数,您可以通过该参数指定像素强度的显示范围。

If a pixel has an intensity value less than or equal to the value of this parameter,视频查看器displays it as the first color in the selected colormap.

笔记

指定值最小,,,,remember that the data type of the input image or video determines the range of intensity values representing that image or video.

依赖性

to enable this parameter, select theSpecify range of displayed pixel values [-Inf to Inf]范围。

如果像素的强度值高于或等于该参数的值,则视频查看器displays it as the last color in the selected colormap.

笔记

指定值max,,,,remember that the data type of the input image or video determines the range of intensity values representing that image or video.

依赖性

to enable this parameter, select theSpecify range of displayed pixel values [-Inf to Inf]范围。

Simulation

要访问此参数,请选择Simulation视频查看器窗口中的菜单。

选择此参数以降低输入视频信号的帧速率以提高性能。

block Characteristics

数据类型

布尔|双倍的|integer|单身的

Direct Feedthrough

no

多维信号

no

可变大小信号

是的

零交叉检测

no

Introduced before R2006a