vision.Maximum
Find maximum values in input or sequence of inputs
Description
Find maximum values in an input or sequence of inputs.
To track a set of points:
Create the
vision.Maximum
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,
maxObj
= vision.MaximummaxObj
, 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, maxObj
= vision.Maximum(Name,Value
)maxObj =
vision.Maximum('RunningMaximum',false)
Properties
Usage
Syntax
Description
[___] = maxObj(
returns the maximum value in the input image within the given region of interest.I
,ROI
)
[___] = maxObj(
returns the maximum 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
] = maxObj(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)
Examples
Extended Capabilities
Version History
Introduced in R2012a