Estimate motion between images or video frames
To estimate motion between images or video frames.
Create the vision.BlockMatcher
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?.
returns
an object, blkMatcher
= vision.BlockMatcherblkMatcher
, that estimates motion between two images or
two video frames. The object performs this estimation using a block matching method by
moving a block of pixels over a search region.
sets properties using one or more name-value pairs. Enclose each property name in
quotes. For example, blkMatcher
= vision.BlockMatcher(Name,Value
)blkMatcher =
vision.BlockMatcher('ReferenceFrameSource','Input port')
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)
opticalFlow
| opticalFlowFarneback
| opticalFlowHS
| opticalFlowLK
| opticalFlowLKDoG