Documentation of 'boofcv.alg.background.BackgroundModelMoving' Java class
BackgroundModelMoving
boofcv.alg.background

Class BackgroundModelMoving<T extends ImageBase,MotionModel extends InvertibleTransform<MotionModel>>

    • Constructor Detail

      • BackgroundModelMoving

        public BackgroundModelMoving(PointTransformModel_F32<MotionModel> transform,
                                     ImageType<T> imageType)
        Constructor which provides the motion model and image type
        Parameters:
        transform - Point transform which can be used to apply the motion model
        imageType - Type of input image
    • Method Detail

      • initialize

        public abstract void initialize(int backgroundWidth,
                                        int backgroundHeight,
                                        MotionModel homeToWorld)
        Initializes background model. Specifies the size of the background image and transform from the "home" image to the background "world"
        Parameters:
        backgroundWidth - Width of background
        backgroundHeight - Height of background
        homeToWorld - Transform from home to world.
      • updateBackground

        public void updateBackground(MotionModel homeToCurrent,
                                     T frame)
        Updates the background with new image information.
        Parameters:
        homeToCurrent - Transform from home image to the current image
        frame - The current image in the sequence
      • segment

        public void segment(MotionModel homeToCurrent,
                            T frame,
                            GrayU8 segmented)
        Invoke to use the background image to segment the current frame into background and foreground pixels
        Parameters:
        homeToCurrent - Transform from home image to the current image
        frame - current image
        segmented - Segmented image. 0 = background, 1 = foreground/moving

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.