C# 클래스 Accord.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
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
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 Accord.Imaging.UnmanagedImage Original video frame.
motionFrame Accord.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