Class WrapImageMotionPtkSmartRespawn<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<georegression.struct.point.Point2D_F64> getAllTracks​(java.util.List<georegression.struct.point.Point2D_F64> storage)
      All the points being actively tracked in pixel coordinates.
      IT getFirstToCurrent()
      Transform from first image into the current image.
      long getFrameID()
      Returns the ID of the most recently processed frame.
      int getTotalTracks()
      Returns the total number of tracks
      long getTrackId​(int index)
      Used to get the track ID of an active Track
      void getTrackPixel​(int index, georegression.struct.point.Point2D_F64 pixel)
      Gets the observed coordinate of a feature in the input image.
      java.lang.Class<IT> getTransformType()
      Type of transform that it estimates
      boolean isTrackInlier​(int index)
      True if the specified track is an inlier used in motion estimation
      boolean isTrackNew​(int index)
      True if the specified track was just spawned
      boolean process​(T input)
      Processes and updates the image transform.
      void reset()
      Resets the class into its initial state and throws away any information on the image sequence
      void setToFirst()
      Turns the current image into the origin of the coordinate system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • process

        public boolean process​(T input)
        Description copied from interface: ImageMotion2D
        Processes and updates the image transform. The very first image processed will always return true and have a transform of no motion.
        Specified by:
        process in interface ImageMotion2D<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>
        Parameters:
        input - Next image in the sequence. Not modified.
        Returns:
        true if the transform has been updated and false if not
      • reset

        public void reset()
        Description copied from interface: ImageMotion2D
        Resets the class into its initial state and throws away any information on the image sequence
        Specified by:
        reset in interface ImageMotion2D<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>
      • setToFirst

        public void setToFirst()
        Description copied from interface: ImageMotion2D
        Turns the current image into the origin of the coordinate system.
        Specified by:
        setToFirst in interface ImageMotion2D<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>
      • getFrameID

        public long getFrameID()
        Description copied from interface: ImageMotion2D
        Returns the ID of the most recently processed frame. Starts at zero and increments with each call to process.
        Specified by:
        getFrameID in interface ImageMotion2D<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>
      • getFirstToCurrent

        public IT getFirstToCurrent()
        Description copied from interface: ImageMotion2D
        Transform from first image into the current image. NOTE: Returned transform is owned by this class and can be modified after any function is called.
        Specified by:
        getFirstToCurrent in interface ImageMotion2D<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>
        Returns:
        Image transform
      • getTransformType

        public java.lang.Class<IT> getTransformType()
        Description copied from interface: ImageMotion2D
        Type of transform that it estimates
        Specified by:
        getTransformType in interface ImageMotion2D<T extends boofcv.struct.image.ImageBase<T>,​IT extends georegression.struct.InvertibleTransform>
        Returns:
        Transform type.
      • getTrackId

        public long getTrackId​(int index)
        Description copied from interface: AccessPointTracks
        Used to get the track ID of an active Track
        Specified by:
        getTrackId in interface AccessPointTracks
        Parameters:
        index - which track
        Returns:
        The track's ID
      • getTrackPixel

        public void getTrackPixel​(int index,
                                  georegression.struct.point.Point2D_F64 pixel)
        Description copied from interface: AccessPointTracks
        Gets the observed coordinate of a feature in the input image.
        Specified by:
        getTrackPixel in interface AccessPointTracks
        Parameters:
        index - Which point in the list
        pixel - Where the coordinate will be writen to.
      • getAllTracks

        public java.util.List<georegression.struct.point.Point2D_F64> getAllTracks​(@Nullable
                                                                                   java.util.List<georegression.struct.point.Point2D_F64> storage)
        Description copied from interface: AccessPointTracks
        All the points being actively tracked in pixel coordinates.
        Specified by:
        getAllTracks in interface AccessPointTracks
        Returns:
        all active tracks in pixel coordinates
      • isTrackInlier

        public boolean isTrackInlier​(int index)
        Description copied from interface: AccessPointTracks
        True if the specified track is an inlier used in motion estimation
        Specified by:
        isTrackInlier in interface AccessPointTracks
        Parameters:
        index - The index in all
        Returns:
        if it is an inlier or not
      • isTrackNew

        public boolean isTrackNew​(int index)
        Description copied from interface: AccessPointTracks
        True if the specified track was just spawned
        Specified by:
        isTrackNew in interface AccessPointTracks
        Parameters:
        index - The index in all
        Returns:
        if it is new or not