C# Класс HandInput.Util.Background

A background model.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AccumulateBackground ( Single>.Image image ) : void

Learns the background statisitics for one more frame.

Background ( int width, int height ) : System
BackgroundDiff ( Single>.Image image, Byte>.Image mask ) : void

Segments an input image into foreground and background.

CreateModelsFromStats ( ) : void

Creates a statistical model of the background if the model is not created.

ToString ( ) : String

Приватные методы

Метод Описание
SetHighThreshold ( float scale ) : void

Sets the high threshold of the background model for each pixel. Any value above that threashold for a particular pixel is considered foreground. High threshold = average value + average absolute difference * scale

SetLowThreshold ( float scale ) : void

Sets the low threshold of the background model for each pixel. Any value below that threashold for a particular pixel is considered foreground. Low threshold = average value - average absolute difference * scale

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

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

Learns the background statisitics for one more frame.
public AccumulateBackground ( Single>.Image image ) : void
image Single>.Image Image to be accumulated for learning background statistics.
Результат void

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

public Background ( int width, int height ) : System
width int
height int
Результат System

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

Segments an input image into foreground and background.
public BackgroundDiff ( Single>.Image image, Byte>.Image mask ) : void
image Single>.Image image of which the background needs to be subtracted.
mask Byte>.Image a value of 255 in the mask means the pixel is foreground, and a /// value of 0 means the corresponding pixel is background.
Результат void

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

Creates a statistical model of the background if the model is not created.
public CreateModelsFromStats ( ) : void
Результат void

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

public ToString ( ) : String
Результат String