Bgsegm
Objective-C
@interface Bgsegm : NSObject
Swift
class Bgsegm : NSObject
The Bgsegm module
Member classes: BackgroundSubtractorMOG, BackgroundSubtractorGMG, BackgroundSubtractorCNT, BackgroundSubtractorGSOC, BackgroundSubtractorLSBP, BackgroundSubtractorLSBPDesc, SyntheticSequenceGenerator
Member enums: LSBPCameraMotionCompensation
-
Creates a CNT Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorCNT *) createBackgroundSubtractorCNT:(int)minPixelStability useHistory:(BOOL)useHistory maxPixelStability:(int)maxPixelStability isParallel:(BOOL)isParallel;Swift
class func createBackgroundSubtractorCNT(minPixelStability: Int32, useHistory: Bool, maxPixelStability: Int32, isParallel: Bool) -> BackgroundSubtractorCNTParameters
minPixelStabilitynumber of frames with same pixel color to consider stable
useHistorydetermines if we’re giving a pixel credit for being stable for a long time
maxPixelStabilitymaximum allowed credit for a pixel in history
isParalleldetermines if we’re parallelizing the algorithm
-
Creates a CNT Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorCNT *) createBackgroundSubtractorCNT:(int)minPixelStability useHistory:(BOOL)useHistory maxPixelStability:(int)maxPixelStability;Swift
class func createBackgroundSubtractorCNT(minPixelStability: Int32, useHistory: Bool, maxPixelStability: Int32) -> BackgroundSubtractorCNTParameters
minPixelStabilitynumber of frames with same pixel color to consider stable
useHistorydetermines if we’re giving a pixel credit for being stable for a long time
maxPixelStabilitymaximum allowed credit for a pixel in history
-
Creates a CNT Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorCNT *) createBackgroundSubtractorCNT:(int)minPixelStability useHistory:(BOOL)useHistory;Swift
class func createBackgroundSubtractorCNT(minPixelStability: Int32, useHistory: Bool) -> BackgroundSubtractorCNTParameters
minPixelStabilitynumber of frames with same pixel color to consider stable
useHistorydetermines if we’re giving a pixel credit for being stable for a long time
-
Creates a CNT Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorCNT *)createBackgroundSubtractorCNT: (int)minPixelStability;Swift
class func createBackgroundSubtractorCNT(minPixelStability: Int32) -> BackgroundSubtractorCNTParameters
minPixelStabilitynumber of frames with same pixel color to consider stable
-
Creates a CNT Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorCNT *)createBackgroundSubtractorCNT;Swift
class func createBackgroundSubtractorCNT() -> BackgroundSubtractorCNT -
Creates a GMG Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGMG *) createBackgroundSubtractorGMG:(int)initializationFrames decisionThreshold:(double)decisionThreshold;Swift
class func createBackgroundSubtractorGMG(initializationFrames: Int32, decisionThreshold: Double) -> BackgroundSubtractorGMGParameters
initializationFramesnumber of frames used to initialize the background models.
decisionThresholdThreshold value, above which it is marked foreground, else background.
-
Creates a GMG Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGMG *)createBackgroundSubtractorGMG: (int)initializationFrames;Swift
class func createBackgroundSubtractorGMG(initializationFrames: Int32) -> BackgroundSubtractorGMGParameters
initializationFramesnumber of frames used to initialize the background models.
-
Creates a GMG Background Subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGMG *)createBackgroundSubtractorGMG;Swift
class func createBackgroundSubtractorGMG() -> BackgroundSubtractorGMG -
+createBackgroundSubtractorGSOC:nSamples: replaceRate: propagationRate: hitsThreshold: alpha: beta: blinkingSupressionDecay: blinkingSupressionMultiplier: noiseRemovalThresholdFacBG: noiseRemovalThresholdFacFG: Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay blinkingSupressionMultiplier:(float)blinkingSupressionMultiplier noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32, alpha: Float, beta: Float, blinkingSupressionDecay: Float, blinkingSupressionMultiplier: Float, noiseRemovalThresholdFacBG: Float, noiseRemovalThresholdFacFG: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
alphaScale coefficient for threshold.
betaBias coefficient for threshold.
blinkingSupressionDecayBlinking supression decay factor.
blinkingSupressionMultiplierBlinking supression multiplier.
noiseRemovalThresholdFacBGStrength of the noise removal for background points.
noiseRemovalThresholdFacFGStrength of the noise removal for foreground points.
-
+createBackgroundSubtractorGSOC:nSamples: replaceRate: propagationRate: hitsThreshold: alpha: beta: blinkingSupressionDecay: blinkingSupressionMultiplier: noiseRemovalThresholdFacBG: Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay blinkingSupressionMultiplier:(float)blinkingSupressionMultiplier noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32, alpha: Float, beta: Float, blinkingSupressionDecay: Float, blinkingSupressionMultiplier: Float, noiseRemovalThresholdFacBG: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
alphaScale coefficient for threshold.
betaBias coefficient for threshold.
blinkingSupressionDecayBlinking supression decay factor.
blinkingSupressionMultiplierBlinking supression multiplier.
noiseRemovalThresholdFacBGStrength of the noise removal for background points.
-
+createBackgroundSubtractorGSOC:nSamples: replaceRate: propagationRate: hitsThreshold: alpha: beta: blinkingSupressionDecay: blinkingSupressionMultiplier: Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay blinkingSupressionMultiplier:(float)blinkingSupressionMultiplier;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32, alpha: Float, beta: Float, blinkingSupressionDecay: Float, blinkingSupressionMultiplier: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
alphaScale coefficient for threshold.
betaBias coefficient for threshold.
blinkingSupressionDecayBlinking supression decay factor.
blinkingSupressionMultiplierBlinking supression multiplier.
-
+createBackgroundSubtractorGSOC:nSamples: replaceRate: propagationRate: hitsThreshold: alpha: beta: blinkingSupressionDecay: Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32, alpha: Float, beta: Float, blinkingSupressionDecay: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
alphaScale coefficient for threshold.
betaBias coefficient for threshold.
blinkingSupressionDecayBlinking supression decay factor.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32, alpha: Float, beta: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
alphaScale coefficient for threshold.
betaBias coefficient for threshold.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32, alpha: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
alphaScale coefficient for threshold.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float, hitsThreshold: Int32) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
hitsThresholdHow many positives the sample must get before it will be considered as a possible replacement.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float, propagationRate: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
propagationRateProbability of propagating to neighbors.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32, replaceRate: Float) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
replaceRateProbability of replacing the old sample - how fast the model will update itself.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *) createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation, nSamples: Int32) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *)createBackgroundSubtractorGSOC: (LSBPCameraMotionCompensation)mc;Swift
class func createBackgroundSubtractorGSOC(mc: LSBPCameraMotionCompensation) -> BackgroundSubtractorGSOCParameters
mcWhether to use camera motion compensation.
-
Creates an instance of BackgroundSubtractorGSOC algorithm.
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorGSOC *)createBackgroundSubtractorGSOC;Swift
class func createBackgroundSubtractorGSOC() -> BackgroundSubtractorGSOC -
+createBackgroundSubtractorLSBP:nSamples: LSBPRadius: Tlower: Tupper: Tinc: Tdec: Rscale: Rincdec: noiseRemovalThresholdFacBG: noiseRemovalThresholdFacFG: LSBPthreshold: minCount: Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG LSBPthreshold:(int)LSBPthreshold minCount:(int)minCount;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float, Rscale: Float, Rincdec: Float, noiseRemovalThresholdFacBG: Float, noiseRemovalThresholdFacFG: Float, LSBPthreshold: Int32, minCount: Int32) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
RscaleScale coefficient for threshold values.
RincdecIncrease/Decrease step for threshold values.
noiseRemovalThresholdFacBGStrength of the noise removal for background points.
noiseRemovalThresholdFacFGStrength of the noise removal for foreground points.
LSBPthresholdThreshold for LSBP binary string.
minCountMinimal number of matches for sample to be considered as foreground.
-
+createBackgroundSubtractorLSBP:nSamples: LSBPRadius: Tlower: Tupper: Tinc: Tdec: Rscale: Rincdec: noiseRemovalThresholdFacBG: noiseRemovalThresholdFacFG: LSBPthreshold: Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG LSBPthreshold:(int)LSBPthreshold;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float, Rscale: Float, Rincdec: Float, noiseRemovalThresholdFacBG: Float, noiseRemovalThresholdFacFG: Float, LSBPthreshold: Int32) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
RscaleScale coefficient for threshold values.
RincdecIncrease/Decrease step for threshold values.
noiseRemovalThresholdFacBGStrength of the noise removal for background points.
noiseRemovalThresholdFacFGStrength of the noise removal for foreground points.
LSBPthresholdThreshold for LSBP binary string.
-
+createBackgroundSubtractorLSBP:nSamples: LSBPRadius: Tlower: Tupper: Tinc: Tdec: Rscale: Rincdec: noiseRemovalThresholdFacBG: noiseRemovalThresholdFacFG: Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float, Rscale: Float, Rincdec: Float, noiseRemovalThresholdFacBG: Float, noiseRemovalThresholdFacFG: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
RscaleScale coefficient for threshold values.
RincdecIncrease/Decrease step for threshold values.
noiseRemovalThresholdFacBGStrength of the noise removal for background points.
noiseRemovalThresholdFacFGStrength of the noise removal for foreground points.
-
+createBackgroundSubtractorLSBP:nSamples: LSBPRadius: Tlower: Tupper: Tinc: Tdec: Rscale: Rincdec: noiseRemovalThresholdFacBG: Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float, Rscale: Float, Rincdec: Float, noiseRemovalThresholdFacBG: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
RscaleScale coefficient for threshold values.
RincdecIncrease/Decrease step for threshold values.
noiseRemovalThresholdFacBGStrength of the noise removal for background points.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float, Rscale: Float, Rincdec: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
RscaleScale coefficient for threshold values.
RincdecIncrease/Decrease step for threshold values.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float, Rscale: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
RscaleScale coefficient for threshold values.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float, Tdec: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
TdecDecrease step for T-values. See CITE: LGuo2016 for details.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float, Tinc: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
TincIncrease step for T-values. See CITE: LGuo2016 for details.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float, Tupper: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
TupperUpper bound for T-values. See CITE: LGuo2016 for details.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32, Tlower: Float) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
TlowerLower bound for T-values. See CITE: LGuo2016 for details.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32, LSBPRadius: Int32) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
LSBPRadiusLSBP descriptor radius.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *) createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation, nSamples: Int32) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
nSamplesNumber of samples to maintain at each point of the frame.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *)createBackgroundSubtractorLSBP: (LSBPCameraMotionCompensation)mc;Swift
class func createBackgroundSubtractorLSBP(mc: LSBPCameraMotionCompensation) -> BackgroundSubtractorLSBPParameters
mcWhether to use camera motion compensation.
-
Creates an instance of BackgroundSubtractorLSBP algorithm.
Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
Declaration
Objective-C
+ (nonnull BackgroundSubtractorLSBP *)createBackgroundSubtractorLSBP;Swift
class func createBackgroundSubtractorLSBP() -> BackgroundSubtractorLSBP -
Creates mixture-of-gaussian background subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorMOG *) createBackgroundSubtractorMOG:(int)history nmixtures:(int)nmixtures backgroundRatio:(double)backgroundRatio noiseSigma:(double)noiseSigma;Swift
class func createBackgroundSubtractorMOG(history: Int32, nmixtures: Int32, backgroundRatio: Double, noiseSigma: Double) -> BackgroundSubtractorMOGParameters
historyLength of the history.
nmixturesNumber of Gaussian mixtures.
backgroundRatioBackground ratio.
noiseSigmaNoise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.
-
Creates mixture-of-gaussian background subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorMOG *) createBackgroundSubtractorMOG:(int)history nmixtures:(int)nmixtures backgroundRatio:(double)backgroundRatio;Swift
class func createBackgroundSubtractorMOG(history: Int32, nmixtures: Int32, backgroundRatio: Double) -> BackgroundSubtractorMOGParameters
historyLength of the history.
nmixturesNumber of Gaussian mixtures.
backgroundRatioBackground ratio. means some automatic value.
-
Creates mixture-of-gaussian background subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorMOG *)createBackgroundSubtractorMOG:(int)history nmixtures: (int)nmixtures;Swift
class func createBackgroundSubtractorMOG(history: Int32, nmixtures: Int32) -> BackgroundSubtractorMOGParameters
historyLength of the history.
nmixturesNumber of Gaussian mixtures. means some automatic value.
-
Creates mixture-of-gaussian background subtractor
Declaration
Objective-C
+ (nonnull BackgroundSubtractorMOG *)createBackgroundSubtractorMOG:(int)history;Swift
class func createBackgroundSubtractorMOG(history: Int32) -> BackgroundSubtractorMOGParameters
historyLength of the history. means some automatic value.
-
Creates mixture-of-gaussian background subtractor
means some automatic value.
Declaration
Objective-C
+ (nonnull BackgroundSubtractorMOG *)createBackgroundSubtractorMOG;Swift
class func createBackgroundSubtractorMOG() -> BackgroundSubtractorMOG -
Creates an instance of SyntheticSequenceGenerator.
Declaration
Objective-C
+ (nonnull SyntheticSequenceGenerator *) createSyntheticSequenceGenerator:(nonnull Mat *)background object:(nonnull Mat *)object amplitude:(double)amplitude wavelength:(double)wavelength wavespeed:(double)wavespeed objspeed:(double)objspeed;Swift
class func createSyntheticSequenceGenerator(background: Mat, object: Mat, amplitude: Double, wavelength: Double, wavespeed: Double, objspeed: Double) -> SyntheticSequenceGeneratorParameters
backgroundBackground image for object.
objectObject image which will move slowly over the background.
amplitudeAmplitude of wave distortion applied to background.
wavelengthLength of waves in distortion applied to background.
wavespeedHow fast waves will move.
objspeedHow fast object will fly over background.
-
Creates an instance of SyntheticSequenceGenerator.
Declaration
Objective-C
+ (nonnull SyntheticSequenceGenerator *) createSyntheticSequenceGenerator:(nonnull Mat *)background object:(nonnull Mat *)object amplitude:(double)amplitude wavelength:(double)wavelength wavespeed:(double)wavespeed;Swift
class func createSyntheticSequenceGenerator(background: Mat, object: Mat, amplitude: Double, wavelength: Double, wavespeed: Double) -> SyntheticSequenceGeneratorParameters
backgroundBackground image for object.
objectObject image which will move slowly over the background.
amplitudeAmplitude of wave distortion applied to background.
wavelengthLength of waves in distortion applied to background.
wavespeedHow fast waves will move.
-
Creates an instance of SyntheticSequenceGenerator.
Declaration
Objective-C
+ (nonnull SyntheticSequenceGenerator *) createSyntheticSequenceGenerator:(nonnull Mat *)background object:(nonnull Mat *)object amplitude:(double)amplitude wavelength:(double)wavelength;Swift
class func createSyntheticSequenceGenerator(background: Mat, object: Mat, amplitude: Double, wavelength: Double) -> SyntheticSequenceGeneratorParameters
backgroundBackground image for object.
objectObject image which will move slowly over the background.
amplitudeAmplitude of wave distortion applied to background.
wavelengthLength of waves in distortion applied to background.
-
Creates an instance of SyntheticSequenceGenerator.
Declaration
Objective-C
+ (nonnull SyntheticSequenceGenerator *) createSyntheticSequenceGenerator:(nonnull Mat *)background object:(nonnull Mat *)object amplitude:(double)amplitude;Swift
class func createSyntheticSequenceGenerator(background: Mat, object: Mat, amplitude: Double) -> SyntheticSequenceGeneratorParameters
backgroundBackground image for object.
objectObject image which will move slowly over the background.
amplitudeAmplitude of wave distortion applied to background.
-
Creates an instance of SyntheticSequenceGenerator.
Declaration
Objective-C
+ (nonnull SyntheticSequenceGenerator *) createSyntheticSequenceGenerator:(nonnull Mat *)background object:(nonnull Mat *)object;Swift
class func createSyntheticSequenceGenerator(background: Mat, object: Mat) -> SyntheticSequenceGeneratorParameters
backgroundBackground image for object.
objectObject image which will move slowly over the background.
View on GitHub
Bgsegm Class Reference