C# Класс AForge.Vision.Motion.MotionAreaHighlighting

Motion processing algorithm, which highlights motion areas.

The aim of this motion processing algorithm is to highlight motion areas with grid pattern of the specified color.

Sample usage:

// create motion detector MotionDetector detector = new MotionDetector( /* motion detection algorithm */, new MotionAreaHighlighting( ) ); // continuously feed video frames to motion detector while ( ... ) { // process new video frame detector.ProcessFrame( videoFrame ); }
Наследование: IMotionProcessing
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MotionAreaHighlighting ( ) : System

Initializes a new instance of the MotionAreaHighlighting class.

MotionAreaHighlighting ( Color highlightColor ) : System

Initializes a new instance of the MotionAreaHighlighting class.

ProcessFrame ( UnmanagedImage videoFrame, UnmanagedImage motionFrame ) : void

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

Processes provided motion frame and highlights motion areas on the original video frame with specified color.

Reset ( ) : void

Reset internal state of motion processing algorithm.

The method allows to reset internal state of motion processing algorithm and prepare it for processing of next video stream or to restart the algorithm.

Описание методов

MotionAreaHighlighting() публичный Метод

Initializes a new instance of the MotionAreaHighlighting class.
public MotionAreaHighlighting ( ) : System
Результат System

MotionAreaHighlighting() публичный Метод

Initializes a new instance of the MotionAreaHighlighting class.
public MotionAreaHighlighting ( Color highlightColor ) : System
highlightColor Color Color used to highlight motion regions.
Результат System

ProcessFrame() публичный Метод

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

Processes provided motion frame and highlights motion areas on the original video frame with specified color.

Motion frame is not 8 bpp image, but it must be so. Video frame must be 8 bpp grayscale image or 24/32 bpp color image.
public ProcessFrame ( UnmanagedImage videoFrame, UnmanagedImage motionFrame ) : void
videoFrame AForge.Imaging.UnmanagedImage Original video frame.
motionFrame AForge.Imaging.UnmanagedImage Motion frame provided by motion detection /// algorithm (see ).
Результат void

Reset() публичный Метод

Reset internal state of motion processing algorithm.

The method allows to reset internal state of motion processing algorithm and prepare it for processing of next video stream or to restart the algorithm.

public Reset ( ) : void
Результат void