public abstract class BackgroundMovingGaussian<T extends boofcv.struct.image.ImageBase,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundModelMoving<T,Motion> implements BackgroundAlgorithmGaussian
Implementation of BackgroundAlgorithmGaussian for stationary images.
BackgroundAlgorithmGaussian,
BackgroundModelMoving| Modifier and Type | Field and Description |
|---|---|
protected float |
initialVariance
The initial variance assigned to a new pixel.
|
protected float |
learnRate
Specifies how fast it will adapt.
|
protected float |
minimumDifference |
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 |
|---|
BackgroundMovingGaussian(float learnRate,
float threshold,
boofcv.struct.distort.Point2Transform2Model_F32<Motion> transform,
boofcv.struct.image.ImageType<T> imageType)
See class documentation for parameters definitions.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getInitialVariance()
Returns the initial variance assigned to a pixel
|
float |
getLearnRate()
Returns the learning rate.
|
float |
getMinimumDifference() |
float |
getThreshold() |
void |
setInitialVariance(float initialVariance)
Sets the initial variance assigned to a pixel
|
void |
setLearnRate(float learnRate)
Specifies the learning rate
|
void |
setMinimumDifference(float minimumDifference) |
void |
setThreshold(float threshold) |
_segment, initialize, segment, updateBackground, updateBackgroundgetImageType, getUnknownValue, reset, setUnknownValueprotected float learnRate
protected float threshold
protected float initialVariance
protected float minimumDifference
public BackgroundMovingGaussian(float learnRate,
float threshold,
boofcv.struct.distort.Point2Transform2Model_F32<Motion> transform,
boofcv.struct.image.ImageType<T> imageType)
learnRate - Specifies how quickly the background is updated Try 0.05threshold - Threshold for background. ≥ 0. Try 10transform - Used to convert pixel coordinatesimageType - Type of input imagepublic float getInitialVariance()
BackgroundAlgorithmGaussiangetInitialVariance in interface BackgroundAlgorithmGaussianpublic void setInitialVariance(float initialVariance)
BackgroundAlgorithmGaussiansetInitialVariance in interface BackgroundAlgorithmGaussianinitialVariance - initial variancepublic float getLearnRate()
BackgroundAlgorithmGaussiangetLearnRate in interface BackgroundAlgorithmGaussianpublic void setLearnRate(float learnRate)
BackgroundAlgorithmGaussiansetLearnRate in interface BackgroundAlgorithmGaussianlearnRate - 0 (slow) to 1 (fast)public float getThreshold()
getThreshold in interface BackgroundAlgorithmGaussianpublic void setThreshold(float threshold)
setThreshold in interface BackgroundAlgorithmGaussianpublic float getMinimumDifference()
getMinimumDifference in interface BackgroundAlgorithmGaussianpublic void setMinimumDifference(float minimumDifference)
setMinimumDifference in interface BackgroundAlgorithmGaussian