boofcv.alg.background.stationary
Class BackgroundStationaryGaussian_PL<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.background.BackgroundModel<T>
-
- boofcv.alg.background.BackgroundModelStationary<T>
-
- boofcv.alg.background.stationary.BackgroundStationaryGaussian<Planar<T>>
-
- boofcv.alg.background.stationary.BackgroundStationaryGaussian_PL<T>
-
- All Implemented Interfaces:
- BackgroundAlgorithmGaussian
public class BackgroundStationaryGaussian_PL<T extends ImageGray> extends BackgroundStationaryGaussian<Planar<T>>
Implementation ofBackgroundStationaryGaussianforPlanar.
-
-
Constructor Summary
Constructors Constructor and Description BackgroundStationaryGaussian_PL(float learnRate, float threshold, ImageType<Planar<T>> imageType)Configurations background removal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidreset()Resets model to its original statevoidsegment(Planar<T> frame, GrayU8 segmented)Invoke to use the background image to segment the current frame into background and foreground pixelsvoidupdateBackground(Planar<T> frame)Updates the background with new image information.-
Methods inherited from class boofcv.alg.background.stationary.BackgroundStationaryGaussian
getInitialVariance, getLearnRate, getMinimumDifference, getThreshold, setInitialVariance, setLearnRate, setMinimumDifference, setThreshold
-
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
-
-
-
Constructor Detail
-
BackgroundStationaryGaussian_PL
public BackgroundStationaryGaussian_PL(float learnRate, float threshold, ImageType<Planar<T>> imageType)Configurations background removal.- Parameters:
learnRate- Specifies how quickly the background is updated. 0 = static 1.0 = instant. Try 0.05threshold- Threshold for background. Consult a chi-square table for reasonably values. 10 to 16 for 1 to 3 bands.imageType- Type of input image.
-
-
Method Detail
-
reset
public void reset()
Description copied from class:BackgroundModelResets model to its original state- Specified by:
resetin classBackgroundModel<Planar<T extends ImageGray>>
-
updateBackground
public void updateBackground(Planar<T> frame)
Description copied from class:BackgroundModelStationaryUpdates the background with new image information.- Specified by:
updateBackgroundin classBackgroundModelStationary<Planar<T extends ImageGray>>
-
segment
public void segment(Planar<T> frame, GrayU8 segmented)
Description copied from class:BackgroundModelStationaryInvoke to use the background image to segment the current frame into background and foreground pixels- Specified by:
segmentin classBackgroundModelStationary<Planar<T extends ImageGray>>- Parameters:
frame- current imagesegmented- Segmented image. 0 = background, 1 = foreground/moving
-
-
DataMelt 3.0 © DataMelt by jWork.ORG