Documentation of 'boofcv.alg.tracker.tld.TldRegionTracker' Java class
TldRegionTracker
boofcv.alg.tracker.tld

Class TldRegionTracker<Image extends ImageGray,Derivative extends ImageGray>



  • public class TldRegionTracker<Image extends ImageGray,Derivative extends ImageGray>
    extends java.lang.Object
    Tracks features inside target's rectangle using pyramidal KLT and updates the rectangle using found motion. A scale and translation model model is used. A major departure from the paper is that KLT forward-backward (FB) error and robust model fitting is used to prune tracks and estimate motion. In the paper FB and NCC error is used to prune tracks and a (in my opinion) hack is used by computing median error values. The way the motion is computed is more mathematically sound this way. NCC would provide a good sanity check, but is probably not needed.
    • Constructor Detail

      • TldRegionTracker

        public TldRegionTracker(int gridWidth,
                                int featureRadius,
                                double maxErrorFB,
                                ImageGradient<Image,Derivative> gradient,
                                PyramidKltTracker<Image,Derivative> tracker,
                                java.lang.Class<Image> imageType,
                                java.lang.Class<Derivative> derivType)
        Configures tracker
        Parameters:
        gridWidth - Number of tracks spawned along a side in the grid. Try 10
        featureRadius - Radius of KLT features being tracked. Try 5
        maxErrorFB - Maximum allowed forwards-backwards error
        gradient - Computes image gradient used by KLT tracker
        tracker - Feature tracker
        imageType - Type of input image
        derivType - Type of derivative image
    • Method Detail

      • initialize

        public void initialize(PyramidDiscrete<Image> image)
        Call for the first image being tracked
        Parameters:
        image - Most recent video image.
      • process

        public boolean process(ImagePyramid<Image> image,
                               Rectangle2D_F64 targetRectangle)
        Creates several tracks inside the target rectangle and compuets their motion
        Parameters:
        image - Most recent video image.
        targetRectangle - Location of target in previous frame. Not modified.
        Returns:
        true if tracking was successful or false if not

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.