public abstract class BackgroundStationaryGmm<T extends boofcv.struct.image.ImageBase<T>> extends BackgroundModelStationary<T> implements BackgroundAlgorithmGmm
Implementation of BackgroundAlgorithmGmm for stationary images.
BackgroundModelStationaryimageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryGmm(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
float |
getInitialVariance()
Returns the initial variance assigned to a pixel
|
float |
getLearningPeriod()
Returns the learning period.
|
float |
getMaxDistance() |
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
|
void |
updateBackground(T frame)
Updates the background with new image information.
|
void |
updateBackground(T frame,
boofcv.struct.image.GrayU8 mask)
Updates the background and segments it at the same time.
|
segmentgetImageType, getUnknownValue, setUnknownValuepublic BackgroundStationaryGmm(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.image.ImageType<T> imageType)
public void reset()
BackgroundModelreset in class BackgroundModel<T extends boofcv.struct.image.ImageBase<T>>public void updateBackground(T frame)
BackgroundModelStationaryupdateBackground in class BackgroundModelStationary<T extends boofcv.struct.image.ImageBase<T>>public void updateBackground(T frame, @Nullable boofcv.struct.image.GrayU8 mask)
BackgroundModelStationaryupdateBackground in class BackgroundModelStationary<T extends boofcv.struct.image.ImageBase<T>>mask - If null then the background mask is ignoredpublic 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)