2024年5月2日发(作者:)

Matlab Vision Function

(matlab2012b)

1. Video Play function

Matlab可以读取或播放avi格式的视频文件,但是avi 格式是N多视频格式

的统称。只能读取未压缩的avi文件或压缩格式为'MJPG'的文件。如果avi文件

为其它压缩形式的则可以采用第三方软件将其进行格式转换,比如“AVI视频转

换器”或“WinAVIVideoConverter9”。

1.1 mplay (视频播放函数)

Example:mplay('');

1.2 视频文件读取函数

OBJ = VideoReader(FILENAME)

1.3 获取avi视频文件的压缩格式信息

可以调aviinfo函数,获取avi文件的属性信息,调用格式为:

info=aviinfo('…...')

1.4 逐帧读取视频文件中的帧图像

videoFReader = ileReader('');

%

ileReader - Read video frames and audio samples from video file

videoFReader = ileReader('');

%

layer - Play video or display image

videoPlayer = layer;

while ~isDone(videoFReader)

videoFrame = step(videoFReader);

step(videoPlayer, videoFrame);

end

release(videoPlayer);

release(videoFReader);

8888888888888888888888888888888888888888888888888888888888888888

% step(videoPlayer, I) displays one grayscale or truecolor RGB video

frame, I, in the video player.

videoFReader = ileReader('');

%

ileReader - Read video frames and audio samples from video file

videoFReader = ileReader('test2_');

%

layer - Play video or display image

videoPlayer = layer;

while ~isDone(videoFReader)

videoFrame = step(videoFReader)

step(videoPlayer, videoFrame) ;

end

release(videoPlayer);

release(videoFReader);

1.4 matlab图像处理函数中的“step”

在matlab图像处理函数中,比如“ileReader”,

“layer” 。这些函数中可以采用“step”方法来实现特定的功能,

每个函数的step所实现的功能都不一样,需要每个函数都进行特定的处理。

Appendix: to be processed

International Journal of Computer Vision

May 2004, Volume 57, Issue 2, pp 137-154

A1. Robust Real-Time Face Detection

Paul Viola,

Michael J. Jones

被引用次数:6631 相关文章 所有 297 个版本 引用

A2. Cell Counting

Open this Example

This example shows how to use a combination of basic morphological operators and blob analysis to extract

information from a video stream. In this case, the example counts the number of E. Coli bacteria in each video

frame. Note that the cells are of varying brightness, which makes the task of segmentation more challenging.

:8080/shared/Brian/quad%20init%20load/opt/matlab/toolbox/vision/visiondemos/

A3. Algorithm to be studied

形态学算子;

Hough变换;

蛇形算法;

Svm;

Adaboost;

help vision

Computer Vision System Toolbox