Class BackgroundModel<T extends ImageBase<T>>

java.lang.Object
boofcv.alg.background.BackgroundModel<T>
Direct Known Subclasses:
BackgroundModelMoving, BackgroundModelStationary

public abstract class BackgroundModel<T extends ImageBase<T>> extends Object
Base class for background subtraction/motion detection.
  • Field Details

    • imageType

      protected ImageType<T extends ImageBase<T>> imageType
    • unknownValue

      protected byte unknownValue
  • Constructor Details

    • BackgroundModel

      protected BackgroundModel(ImageType<T> imageType)
  • Method Details

    • reset

      public abstract void reset()
      Resets model to its original state
    • getUnknownValue

      public int getUnknownValue()
      Returns the value that pixels in the segmented image are assigned if there is no background information.
      Returns:
      Value for unknown
    • setUnknownValue

      public void setUnknownValue(int unknownValue)
      Specify the value of a segmented pixel which has no corresponding pixel in the background image.
      Parameters:
      unknownValue - Value for pixels with out a background pixel. 0 to 255, inclusive.
    • getImageType

      public ImageType<T> getImageType()
      Type of input image it can process