Click or drag to resize
Accord.NET (logo)

GridMotionAreaProcessingProcessFrame Method

Process video and motion frames doing further post processing after performed motion detection.

Namespace:  Accord.Vision.Motion
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.8.0
Syntax
public void ProcessFrame(
	UnmanagedImage videoFrame,
	UnmanagedImage motionFrame
)
Request Example View Source

Parameters

videoFrame
Type: Accord.ImagingUnmanagedImage
Original video frame.
motionFrame
Type: Accord.ImagingUnmanagedImage
Motion frame provided by motion detection algorithm (see IMotionDetector).

Implements

IMotionProcessingProcessFrame(UnmanagedImage, UnmanagedImage)
Exceptions
ExceptionCondition
InvalidImagePropertiesExceptionMotion frame is not 8 bpp image, but it must be so.
UnsupportedImageFormatExceptionVideo frame must be 8 bpp grayscale image or 24/32 bpp color image.
Remarks

Processes provided motion frame and calculates motion level for each grid's cell. In the case if HighlightMotionGrid property is set to , the cell with motion level above threshold are highlighted.

See Also