public abstract class BackgroundStationaryBasic<T extends boofcv.struct.image.ImageBase> extends BackgroundModelStationary<T> implements BackgroundAlgorithmBasic
Implementation of BackgroundAlgorithmBasic for stationary images.
| Modifier and Type | Field and Description |
|---|---|
protected float |
learnRate
Specifies how fast it will adapt.
|
protected float |
threshold
Threshold for classifying a pixel as background or not.
|
imageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryBasic(float learnRate,
float threshold,
boofcv.struct.image.ImageType<T> imageType)
Configures background model
|
| Modifier and Type | Method and Description |
|---|---|
float |
getLearnRate()
Returns the learning rate.
|
float |
getThreshold()
Returns the threshold for background/moving object.
|
void |
setLearnRate(float learnRate)
Specifies the learning rate
|
void |
setThreshold(float threshold)
Sets the threshold for background/moving object
|
segment, updateBackgroundgetImageType, getUnknownValue, reset, setUnknownValueprotected float learnRate
protected float threshold
public BackgroundStationaryBasic(float learnRate,
float threshold,
boofcv.struct.image.ImageType<T> imageType)
learnRate - learning rate, 0 to 1. 0 = fastest and 1 = slowest.threshold - Euclidean distance threshold. Background is ≤ this valueimageType - Type of input imagepublic float getLearnRate()
BackgroundAlgorithmBasicgetLearnRate in interface BackgroundAlgorithmBasicpublic void setLearnRate(float learnRate)
BackgroundAlgorithmBasicsetLearnRate in interface BackgroundAlgorithmBasiclearnRate - 0 (slow) to 1 (fast)public float getThreshold()
BackgroundAlgorithmBasicgetThreshold in interface BackgroundAlgorithmBasicpublic void setThreshold(float threshold)
BackgroundAlgorithmBasicsetThreshold in interface BackgroundAlgorithmBasicthreshold - background threshold