Package boofcv.abst.sfm.d2
Class WrapImageMotionPtkSmartRespawn<T extends ImageBase<T>,IT extends InvertibleTransform<IT>>
java.lang.Object
boofcv.abst.sfm.d2.WrapImageMotionPtkSmartRespawn<T,IT>
- All Implemented Interfaces:
AccessPointTracks
,ImageMotion2D<T,
IT>
public class WrapImageMotionPtkSmartRespawn<T extends ImageBase<T>,IT extends InvertibleTransform<IT>>
extends Object
implements ImageMotion2D<T,IT>, AccessPointTracks
Wrapper around
ImageMotionPtkSmartRespawn
for ImageMotion2D
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllTracks
(@Nullable List<Point2D_F64> storage) All the points being actively tracked in pixel coordinates.Transform from first image into the current image.long
Returns the ID of the most recently processed frame.int
Returns the total number of trackslong
getTrackId
(int index) Used to get the track ID of an active Trackvoid
getTrackPixel
(int index, Point2D_F64 pixel) Gets the observed coordinate of a feature in the input image.Type of transform that it estimatesboolean
isTrackInlier
(int index) True if the specified track is an inlier used in motion estimationboolean
isTrackNew
(int index) True if the specified track was just spawnedboolean
Processes and updates the image transform.void
reset()
Resets the class into its initial state and throws away any information on the image sequencevoid
Turns the current image into the origin of the coordinate system.
-
Constructor Details
-
WrapImageMotionPtkSmartRespawn
-
-
Method Details
-
process
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 interfaceImageMotion2D<T extends ImageBase<T>,
IT extends InvertibleTransform<IT>> - 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 interfaceImageMotion2D<T extends ImageBase<T>,
IT extends InvertibleTransform<IT>>
-
setToFirst
public void setToFirst()Description copied from interface:ImageMotion2D
Turns the current image into the origin of the coordinate system.- Specified by:
setToFirst
in interfaceImageMotion2D<T extends ImageBase<T>,
IT extends InvertibleTransform<IT>>
-
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 interfaceImageMotion2D<T extends ImageBase<T>,
IT extends InvertibleTransform<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 interfaceImageMotion2D<T extends ImageBase<T>,
IT extends InvertibleTransform<IT>> - Returns:
- Image transform
-
getTransformType
Description copied from interface:ImageMotion2D
Type of transform that it estimates- Specified by:
getTransformType
in interfaceImageMotion2D<T extends ImageBase<T>,
IT extends InvertibleTransform<IT>> - Returns:
- Transform type.
-
getTotalTracks
public int getTotalTracks()Description copied from interface:AccessPointTracks
Returns the total number of tracks- Specified by:
getTotalTracks
in interfaceAccessPointTracks
-
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 interfaceAccessPointTracks
- Parameters:
index
- which track- Returns:
- The track's ID
-
getTrackPixel
Description copied from interface:AccessPointTracks
Gets the observed coordinate of a feature in the input image.- Specified by:
getTrackPixel
in interfaceAccessPointTracks
- Parameters:
index
- Which point in the listpixel
- Where the coordinate will be writen to.
-
getAllTracks
Description copied from interface:AccessPointTracks
All the points being actively tracked in pixel coordinates.- Specified by:
getAllTracks
in interfaceAccessPointTracks
- 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 interfaceAccessPointTracks
- 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 interfaceAccessPointTracks
- Parameters:
index
- The index in all- Returns:
- if it is new or not
-