eyes difference Motion Detection

Subtracts the last frame from the current frame. Calculates the amount of motion occuring within the image.

Inlets & Arguments:
#
Name
Arg
Description
1
image
n/a
Eyes Image, standard operator messages see: eyes messages
2
threshold low
t,lo
Threshold low:
If t < pixel < t2 then pixel = value,
3
threshold high
t2,hi
High threshold
4
value
v
Value to assign to pixels within threshold range.

Outlets:
#
Name Description
1
difference image Resulting difference image
2
motion Number of pixels that have changed since the last image. See results out for information on format.

Messages:

Standard messages
Accepts all messages sent to the eyes object. See eyes messages.

Argument messages
Accepts all inlet arguments as messages: t, t2, and v.

Example:

See Also:
threshold, background, cut, <, >, <=, >=, ><, <>, ==, !=