public abstract class BackgroundMovingGmm<T extends boofcv.struct.image.ImageBase<T>,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundModelMoving<T,Motion> implements BackgroundAlgorithmGmm
Implementation of BackgroundAlgorithmGmm for moving images.
BackgroundModelMovingbackgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingGmm(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.distort.Point2Transform2Model_F32<Motion> transformImageType,
boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
BackgroundGmmCommon |
getCommon() |
float |
getInitialVariance()
Returns the initial variance assigned to a pixel
|
float |
getLearningPeriod()
Returns the learning period.
|
float |
getMaxDistance() |
void |
initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
Initializes background model.
|
void |
reset()
Resets model to its original state
|
void |
setInitialVariance(float initialVariance)
Sets the initial variance assigned to a pixel
|
void |
setLearningPeriod(float period)
Specifies the learning rate
|
void |
setMaxDistance(float maxDistance) |
void |
setSignificantWeight(float value)
Minimum value of a Gaussian's weight to be considered part of the background
|
_segment, segment, updateBackground, updateBackgroundgetImageType, getUnknownValue, setUnknownValuepublic void reset()
BackgroundModelreset in class BackgroundModel<T extends boofcv.struct.image.ImageBase<T>>public void initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
BackgroundModelMovinginitialize in class BackgroundModelMoving<T extends boofcv.struct.image.ImageBase<T>,Motion extends georegression.struct.InvertibleTransform<Motion>>backgroundWidth - Width of backgroundbackgroundHeight - Height of backgroundhomeToWorld - Transform from home to world.public float getInitialVariance()
BackgroundAlgorithmGmmgetInitialVariance in interface BackgroundAlgorithmGmmpublic void setInitialVariance(float initialVariance)
BackgroundAlgorithmGmmsetInitialVariance in interface BackgroundAlgorithmGmminitialVariance - initial variancepublic float getLearningPeriod()
BackgroundAlgorithmGmmgetLearningPeriod in interface BackgroundAlgorithmGmmpublic void setLearningPeriod(float period)
BackgroundAlgorithmGmmsetLearningPeriod in interface BackgroundAlgorithmGmmperiod - Must be more than 0.public void setSignificantWeight(float value)
BackgroundAlgorithmGmmsetSignificantWeight in interface BackgroundAlgorithmGmmpublic float getMaxDistance()
public void setMaxDistance(float maxDistance)
public BackgroundGmmCommon getCommon()