Contents

getNumInputs

System object: vision.OpticalFlow
Package: vision

Number of expected inputs to step method

Syntax

N = getNumInputs(H)

Description

N = getNumInputs(H) returns the number of expected inputs, Nto the step method.

For many System objects, this method is a no-op. Objects that have internal states will describe in their help what the reset method does for that object.

The getNumInputs method returns a positive integer that is the number of expected inputs (not counting the object itself) to the step method. This value will change if you alter any properties that turn inputs on or off. You must call the step method with the number of input arguments equal to the result of getNumInputs(H).

Was this topic helpful?