public class opencv_bgsegm extends opencv_bgsegm
Modifier and Type | Field and Description |
---|---|
static int |
LSBP_CAMERA_MOTION_COMPENSATION_LK
enum cv::bgsegm::LSBPCameraMotionCompensation
|
static int |
LSBP_CAMERA_MOTION_COMPENSATION_NONE
enum cv::bgsegm::LSBPCameraMotionCompensation
|
Constructor and Description |
---|
opencv_bgsegm() |
Modifier and Type | Method and Description |
---|---|
static BackgroundSubtractorCNT |
createBackgroundSubtractorCNT() |
static BackgroundSubtractorCNT |
createBackgroundSubtractorCNT(int minPixelStability,
boolean useHistory,
int maxPixelStability,
boolean isParallel)
\brief Creates a CNT Background Subtractor
|
static BackgroundSubtractorGMG |
createBackgroundSubtractorGMG() |
static BackgroundSubtractorGMG |
createBackgroundSubtractorGMG(int initializationFrames,
double decisionThreshold)
\brief Creates a GMG Background Subtractor
|
static BackgroundSubtractorGSOC |
createBackgroundSubtractorGSOC() |
static BackgroundSubtractorGSOC |
createBackgroundSubtractorGSOC(int mc,
int nSamples,
float replaceRate,
float propagationRate,
int hitsThreshold,
float alpha,
float beta,
float blinkingSupressionDecay,
float blinkingSupressionMultiplier,
float noiseRemovalThresholdFacBG,
float noiseRemovalThresholdFacFG)
\brief Creates an instance of BackgroundSubtractorGSOC algorithm.
|
static BackgroundSubtractorLSBP |
createBackgroundSubtractorLSBP() |
static BackgroundSubtractorLSBP |
createBackgroundSubtractorLSBP(int mc,
int nSamples,
int LSBPRadius,
float Tlower,
float Tupper,
float Tinc,
float Tdec,
float Rscale,
float Rincdec,
float noiseRemovalThresholdFacBG,
float noiseRemovalThresholdFacFG,
int LSBPthreshold,
int minCount)
\brief Creates an instance of BackgroundSubtractorLSBP algorithm.
|
static BackgroundSubtractorMOG |
createBackgroundSubtractorMOG() |
static BackgroundSubtractorMOG |
createBackgroundSubtractorMOG(int history,
int nmixtures,
double backgroundRatio,
double noiseSigma)
\brief Creates mixture-of-gaussian background subtractor
|
static SyntheticSequenceGenerator |
createSyntheticSequenceGenerator(GpuMat background,
GpuMat object) |
static SyntheticSequenceGenerator |
createSyntheticSequenceGenerator(GpuMat background,
GpuMat object,
double amplitude,
double wavelength,
double wavespeed,
double objspeed) |
static SyntheticSequenceGenerator |
createSyntheticSequenceGenerator(Mat background,
Mat object) |
static SyntheticSequenceGenerator |
createSyntheticSequenceGenerator(Mat background,
Mat object,
double amplitude,
double wavelength,
double wavespeed,
double objspeed)
\brief Creates an instance of SyntheticSequenceGenerator.
|
static SyntheticSequenceGenerator |
createSyntheticSequenceGenerator(UMat background,
UMat object) |
static SyntheticSequenceGenerator |
createSyntheticSequenceGenerator(UMat background,
UMat object,
double amplitude,
double wavelength,
double wavespeed,
double objspeed) |
map
public static final int LSBP_CAMERA_MOTION_COMPENSATION_NONE
public static final int LSBP_CAMERA_MOTION_COMPENSATION_LK
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorMOG createBackgroundSubtractorMOG(int history, int nmixtures, double backgroundRatio, double noiseSigma)
history
- Length of the history.nmixtures
- Number of Gaussian mixtures.backgroundRatio
- Background ratio.noiseSigma
- Noise strength (standard deviation of the brightness or each color channel). 0
means some automatic value.@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorMOG createBackgroundSubtractorMOG()
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorGMG createBackgroundSubtractorGMG(int initializationFrames, double decisionThreshold)
initializationFrames
- number of frames used to initialize the background models.decisionThreshold
- Threshold value, above which it is marked foreground, else background.@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorGMG createBackgroundSubtractorGMG()
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorCNT createBackgroundSubtractorCNT(int minPixelStability, @Cast(value="bool") boolean useHistory, int maxPixelStability, @Cast(value="bool") boolean isParallel)
minPixelStability
- number of frames with same pixel color to consider stableuseHistory
- determines if we're giving a pixel credit for being stable for a long timemaxPixelStability
- maximum allowed credit for a pixel in historyisParallel
- determines if we're parallelizing the algorithm@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorCNT createBackgroundSubtractorCNT()
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC(int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG)
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
mc
- Whether to use camera motion compensation.nSamples
- Number of samples to maintain at each point of the frame.replaceRate
- Probability of replacing the old sample - how fast the model will update itself.propagationRate
- Probability of propagating to neighbors.hitsThreshold
- How many positives the sample must get before it will be considered as a possible replacement.alpha
- Scale coefficient for threshold.beta
- Bias coefficient for threshold.blinkingSupressionDecay
- Blinking supression decay factor.blinkingSupressionMultiplier
- Blinking supression multiplier.noiseRemovalThresholdFacBG
- Strength of the noise removal for background points.noiseRemovalThresholdFacFG
- Strength of the noise removal for foreground points.@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC()
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP(int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG, int LSBPthreshold, int minCount)
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at \cite LGuo2016
mc
- Whether to use camera motion compensation.nSamples
- Number of samples to maintain at each point of the frame.LSBPRadius
- LSBP descriptor radius.Tlower
- Lower bound for T-values. See \cite LGuo2016 for details.Tupper
- Upper bound for T-values. See \cite LGuo2016 for details.Tinc
- Increase step for T-values. See \cite LGuo2016 for details.Tdec
- Decrease step for T-values. See \cite LGuo2016 for details.Rscale
- Scale coefficient for threshold values.Rincdec
- Increase/Decrease step for threshold values.noiseRemovalThresholdFacBG
- Strength of the noise removal for background points.noiseRemovalThresholdFacFG
- Strength of the noise removal for foreground points.LSBPthreshold
- Threshold for LSBP binary string.minCount
- Minimal number of matches for sample to be considered as foreground.@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP()
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(@ByVal Mat background, @ByVal Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)
background
- Background image for object.object
- Object image which will move slowly over the background.amplitude
- Amplitude of wave distortion applied to background.wavelength
- Length of waves in distortion applied to background.wavespeed
- How fast waves will move.objspeed
- How fast object will fly over background.@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(@ByVal Mat background, @ByVal Mat object)
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(@ByVal UMat background, @ByVal UMat object, double amplitude, double wavelength, double wavespeed, double objspeed)
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(@ByVal UMat background, @ByVal UMat object)
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(@ByVal GpuMat background, @ByVal GpuMat object, double amplitude, double wavelength, double wavespeed, double objspeed)
@Namespace(value="cv::bgsegm") @opencv_core.Ptr public static SyntheticSequenceGenerator createSyntheticSequenceGenerator(@ByVal GpuMat background, @ByVal GpuMat object)
Copyright © 2020. All rights reserved.