public class BackgroundStationaryGmm_SB<T extends boofcv.struct.image.ImageGray<T>> extends BackgroundStationaryGmm<T>
BackgroundAlgorithmGmm for ImageGray.imageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryGmm_SB(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
void |
segment(T frame,
boofcv.struct.image.GrayU8 segmented)
Invoke to segment input image into background and foreground pixels.
|
void |
updateBackground(T frame,
boofcv.struct.image.GrayU8 mask)
Updates the background and segments it at the same time.
|
getInitialVariance, getLearningPeriod, getMaxDistance, reset, setInitialVariance, setLearningPeriod, setMaxDistance, setSignificantWeight, updateBackgroundgetImageType, getUnknownValue, setUnknownValuepublic BackgroundStationaryGmm_SB(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.image.ImageType<T> imageType)
learningPeriod - Specifies how fast it will adjust to changes in the image. Must be greater than zero.decayCoef - Determines how quickly a Gaussian is forgottenmaxGaussians - Maximum number of Gaussians in a mixture for a pixelimageType - Type of image it's processing.public void updateBackground(T frame, @Nullable boofcv.struct.image.GrayU8 mask)
BackgroundModelStationaryupdateBackground in class BackgroundStationaryGmm<T extends boofcv.struct.image.ImageGray<T>>mask - If null then the background mask is ignoredpublic void segment(T frame, boofcv.struct.image.GrayU8 segmented)
BackgroundModelStationarysegment in class BackgroundModelStationary<T extends boofcv.struct.image.ImageGray<T>>frame - (input) current imagesegmented - (output) Segmented image. 0 = background, 1 = foreground/moving