Class BackgroundModelStationary<T extends ImageBase<T>>

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

public abstract class BackgroundModelStationary<T extends ImageBase<T>> extends BackgroundModel<T>

Base class for classifying pixels as background based on the apparent motion of pixels when the camera is static.

  • Constructor Details

    • BackgroundModelStationary

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

    • updateBackground

      public abstract void updateBackground(T frame)
      Updates the background with new image information.
    • updateBackground

      public void updateBackground(T frame, GrayU8 segment)
      Updates the background and segments it at the same time. In some implementations this can be significantly faster than doing it with separate function calls. Segmentation is performed using the model which it has prior to the update.
    • segment

      public abstract void segment(T frame, GrayU8 segmented)
      Invoke to segment input image into background and foreground pixels. If 'segmented' isn't the correct size it will be resized.
      Parameters:
      frame - (input) current image
      segmented - (output) Segmented image. 0 = background, 1 = foreground/moving