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

Methods

  • 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) -> BackgroundSubtractorCNT

    Parameters

    minPixelStability

    number of frames with same pixel color to consider stable

    useHistory

    determines if we’re giving a pixel credit for being stable for a long time

    maxPixelStability

    maximum allowed credit for a pixel in history

    isParallel

    determines 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) -> BackgroundSubtractorCNT

    Parameters

    minPixelStability

    number of frames with same pixel color to consider stable

    useHistory

    determines if we’re giving a pixel credit for being stable for a long time

    maxPixelStability

    maximum 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) -> BackgroundSubtractorCNT

    Parameters

    minPixelStability

    number of frames with same pixel color to consider stable

    useHistory

    determines 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) -> BackgroundSubtractorCNT

    Parameters

    minPixelStability

    number 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) -> BackgroundSubtractorGMG

    Parameters

    initializationFrames

    number of frames used to initialize the background models.

    decisionThreshold

    Threshold 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) -> BackgroundSubtractorGMG

    Parameters

    initializationFrames

    number of frames used to initialize the background models.

  • Creates a GMG Background Subtractor

    Declaration

    Objective-C

    + (nonnull BackgroundSubtractorGMG *)createBackgroundSubtractorGMG;

    Swift

    class func createBackgroundSubtractorGMG() -> BackgroundSubtractorGMG
  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    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.

  • 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) -> BackgroundSubtractorGSOC

    Parameters

    mc

    Whether to use camera motion compensation.

    nSamples

    Number 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) -> BackgroundSubtractorGSOC

    Parameters

    mc

    Whether 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
  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    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.

  • 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) -> BackgroundSubtractorLSBP

    Parameters

    mc

    Whether to use camera motion compensation.

    nSamples

    Number of samples to maintain at each point of the frame.

    LSBPRadius

    LSBP 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) -> BackgroundSubtractorLSBP

    Parameters

    mc

    Whether to use camera motion compensation.

    nSamples

    Number 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) -> BackgroundSubtractorLSBP

    Parameters

    mc

    Whether 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) -> BackgroundSubtractorMOG

    Parameters

    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.

  • 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) -> BackgroundSubtractorMOG

    Parameters

    history

    Length of the history.

    nmixtures

    Number of Gaussian mixtures.

    backgroundRatio

    Background 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) -> BackgroundSubtractorMOG

    Parameters

    history

    Length of the history.

    nmixtures

    Number 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) -> BackgroundSubtractorMOG

    Parameters

    history

    Length 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) -> SyntheticSequenceGenerator

    Parameters

    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.

  • 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) -> SyntheticSequenceGenerator

    Parameters

    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.

  • 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) -> SyntheticSequenceGenerator

    Parameters

    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.

  • 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) -> SyntheticSequenceGenerator

    Parameters

    background

    Background image for object.

    object

    Object image which will move slowly over the background.

    amplitude

    Amplitude 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) -> SyntheticSequenceGenerator

    Parameters

    background

    Background image for object.

    object

    Object image which will move slowly over the background.