C# 클래스 AForge.Vision.Motion.MotionBorderHighlighting

Motion processing algorithm, which highlights border of motion areas.

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

The motion processing algorithm is supposed to be used only with motion detection algorithms, which are based on finding difference with background frame (see SimpleBackgroundModelingDetector and CustomFrameDifferenceDetector as simple implementations) and allow extract moving objects clearly.

Sample usage:

// create motion detector MotionDetector detector = new MotionDetector( /* motion detection algorithm */, new MotionBorderHighlighting( ) ); // continuously feed video frames to motion detector while ( ... ) { // process new video frame detector.ProcessFrame( videoFrame ); }
상속: IMotionProcessing
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET 1 사용 예제들

공개 메소드들

메소드 설명
MotionBorderHighlighting ( ) : System

Initializes a new instance of the MotionBorderHighlighting class.

MotionBorderHighlighting ( Color highlightColor ) : System

Initializes a new instance of the MotionBorderHighlighting 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 borders of 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.

메소드 상세

MotionBorderHighlighting() 공개 메소드

Initializes a new instance of the MotionBorderHighlighting class.
public MotionBorderHighlighting ( ) : System
리턴 System

MotionBorderHighlighting() 공개 메소드

Initializes a new instance of the MotionBorderHighlighting class.
public MotionBorderHighlighting ( 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 borders of 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