public abstract class BackgroundMovingBasic<T extends boofcv.struct.image.ImageBase,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundModelMoving<T,Motion> implements BackgroundAlgorithmBasic
Implementation of BackgroundAlgorithmBasic for moving images.
BackgroundAlgorithmBasic,
BackgroundModelMoving| 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.
|
backgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingBasic(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
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, initialize, segment, updateBackground, updateBackgroundgetImageType, getUnknownValue, reset, setUnknownValueprotected float learnRate
protected float threshold
public BackgroundMovingBasic(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
boofcv.struct.image.ImageType<T> imageType)
learnRate - learning rate, 0 to 1. 0 = fastest and 1 = slowest.threshold - Euclidean distance threshold. Background is ≤ this valuetransform - Point transformimageType - 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