vision.Variance
(Removed) Find variance values in input or sequence of inputs
function has been removed. Use the
vision.Variance
var
and movvar
functions to find variance values,
instead.
Description
Find the variance values in an input or sequence of inputs.
To track a set of points:
Create the
vision.Variance
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
returns an
object, varObj
= vision.VariancevarObj
, that computes the value and index of the maximum
elements in an input or a sequence of inputs.
sets properties using one or more name-value pairs. Enclose each property name in
quotes. For example, varObj
= vision.Variance(Name,Value
)varObj =
vision.Variance('RunningVariance',false)
Properties
Usage
Syntax
Description
[___] = varObj(
returns the variance value in the input image within the given region of
interest.I
,ROI
)
[___] = varObj(
returns the variance of the input image for a region the labels specified in the
I
,label
,labelNumbers
)labelNumbers
vector. The regions are defined and labeled in the
label
matrix.
[___,
additionally returns a flag to indicate whether the input label numbers are
valid.flag
] = varObj(I
,label
,labelNumbers
)
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object™ as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)