Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

step

System object: vision.BinaryFileWriter
Package: vision

Write video frame to output file

Syntax

step(H,Y,Cb,Cr)
step(H,Y)
step(H,Y,Cb)
step(H,Y,Cb,Cr)
step(H,Y,Cb,Cr,Alpha)

Description

Note

Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

step(H,Y,Cb,Cr) writes one frame of video to the specified output file. Y , Cb, Cr represent the luma (Y) and chroma (Cb and Cr) components of a video stream. This option applies when you set the VideoFormat property to Four character codes.

step(H,Y) writes video component Y to the output file when the VideoFormat property is set to Custom and the VideoComponentCount property is set to 1.

step(H,Y,Cb) writes video components Y and Cb to the output file when the VideoFormat property is Custom and the VideoComponentCount property is set to 2.

step(H,Y,Cb,Cr) writes video components Y , Cb and Cr to the output file when the VideoFormat property is set to Custom and the VideoComponentCount property is set to3.

step(H,Y,Cb,Cr,Alpha) writes video components Y , Cb, Cr and Alpha to the output file when the VideoFormat property is set to Custom, and the VideoComponentCount property is set to 4.

Note

H specifies the System object on which to run this step method.

The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.