Package boofcv.simulation
Class PointTrackerPerfectCloud<T extends ImageBase<T>>
java.lang.Object
boofcv.simulation.PointTrackerPerfectCloud<T>
- All Implemented Interfaces:
PointTracker<T>
public class PointTrackerPerfectCloud<T extends ImageBase<T>>
extends Object
implements PointTracker<T>
Point tracker that provides perfect tracks. Perfect in that there is no miss association and perfect reprojections.
These are generated from a passed in set of 3D points. Intended for use in debugging and unit testing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface boofcv.abst.tracker.PointTracker
PointTracker.Dropper -
Field Summary
FieldsModifier and TypeFieldDescriptionintintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDrops all feature to be dropped and will no longer be tracked.booleandropTrack(PointTrack track) Manually forces a track to be dropped.voiddropTracks(PointTracker.Dropper dropper) Used to drop multiple tracks using a rule.getActiveTracks(@Nullable List<PointTrack> list) Returns a list of active tracks.getAllTracks(@Nullable List<PointTrack> list) Returns a list of all features that are currently being trackedgetDroppedTracks(@Nullable List<PointTrack> list) Returns a list of tracks dropped by the tracker during the most recent update.longReturns the ID of the most recently processed frame.Input image typegetInactiveTracks(@Nullable List<PointTrack> list) Returns a list of inactive tracks.intReturns the maximum total number of tracks that it can spawn in a single frame.getNewTracks(@Nullable List<PointTrack> list) Returns a list of tracks that have been added since process was called.intReturns the total number of active tracksintReturns total number of inactive tracksvoidProcess input image and perform tracking.voidreset()Discard memory of all current and past tracks.voidsetCamera(CameraPinhole intrinsic) voidsetCamera(CameraPinholeBrown intrinsic) voidAutomatically selects new features in the image to track.
-
Field Details
-
cloud
-
world_to_view
-
norm_to_pixel
-
width
public int width -
height
public int height -
frameID
public int frameID
-
-
Constructor Details
-
PointTrackerPerfectCloud
public PointTrackerPerfectCloud()
-
-
Method Details
-
process
Description copied from interface:PointTrackerProcess input image and perform tracking.- Specified by:
processin interfacePointTracker<T extends ImageBase<T>>- Parameters:
image- Next image in the sequence
-
reset
public void reset()Description copied from interface:PointTrackerDiscard memory of all current and past tracks. Growing buffered might not be reset to their initial size by this method.- Specified by:
resetin interfacePointTracker<T extends ImageBase<T>>
-
getFrameID
public long getFrameID()Description copied from interface:PointTrackerReturns the ID of the most recently processed frame. Frames start at 0 and increment by one each time process is called. After reset or before any frames have been processed -1 is returned.- Specified by:
getFrameIDin interfacePointTracker<T extends ImageBase<T>>
-
getTotalActive
public int getTotalActive()Description copied from interface:PointTrackerReturns the total number of active tracks- Specified by:
getTotalActivein interfacePointTracker<T extends ImageBase<T>>
-
getTotalInactive
public int getTotalInactive()Description copied from interface:PointTrackerReturns total number of inactive tracks- Specified by:
getTotalInactivein interfacePointTracker<T extends ImageBase<T>>
-
dropAllTracks
public void dropAllTracks()Description copied from interface:PointTrackerDrops all feature to be dropped and will no longer be tracked.NOTE: Tracks dropped using this function will not appear in the dropped list.
- Specified by:
dropAllTracksin interfacePointTracker<T extends ImageBase<T>>
-
getMaxSpawn
public int getMaxSpawn()Description copied from interface:PointTrackerReturns the maximum total number of tracks that it can spawn in a single frame. This number is reduced by the number of active tracks. So if the maximum number of tracks it can spawn is 200 and 50 tracks are active then it will spawn at most 150 tracks. If there is no limit then a number ≤ 0 is returned.- Specified by:
getMaxSpawnin interfacePointTracker<T extends ImageBase<T>>
-
dropTrack
Description copied from interface:PointTrackerManually forces a track to be dropped. New requests to all and active lists will not include the track after it has been dropped using this function. If request is made to drop a track that is not being tracked (in the internal all list), then the request is ignored.NOTE: Tracks dropped using this function will not appear in the dropped list.
- Specified by:
dropTrackin interfacePointTracker<T extends ImageBase<T>>- Parameters:
track- The track which is to be dropped- Returns:
- true if the request to drop the track was done or if it was ignored because the track wasn't being tracked
-
dropTracks
Description copied from interface:PointTrackerUsed to drop multiple tracks using a rule. This can be more efficient than dropping them one at a time.NOTE: Tracks dropped using this function will not appear in the dropped list.
- Specified by:
dropTracksin interfacePointTracker<T extends ImageBase<T>>- Parameters:
dropper- Rule for dropping the tracks
-
getAllTracks
Description copied from interface:PointTrackerReturns a list of all features that are currently being tracked- Specified by:
getAllTracksin interfacePointTracker<T extends ImageBase<T>>- Parameters:
list- Optional storage for the list of tracks. List is cleared before tracks are added. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getActiveTracks
Description copied from interface:PointTrackerReturns a list of active tracks. An active track is defined as a track which was found in the most recently processed image.- Specified by:
getActiveTracksin interfacePointTracker<T extends ImageBase<T>>- Parameters:
list- Optional storage for the list of tracks. List is cleared before tracks are added. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getInactiveTracks
Description copied from interface:PointTrackerReturns a list of inactive tracks. A track is inactive if it is not associated with any features in the current image.- Specified by:
getInactiveTracksin interfacePointTracker<T extends ImageBase<T>>- Parameters:
list- Optional storage for the list of tracks. List is cleared before tracks are added. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getDroppedTracks
Description copied from interface:PointTrackerReturns a list of tracks dropped by the tracker during the most recent update. Tracks dropped by user request are not included in this list.- Specified by:
getDroppedTracksin interfacePointTracker<T extends ImageBase<T>>- Parameters:
list- Optional storage for the list of tracks. List is cleared before tracks are added. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getNewTracks
Description copied from interface:PointTrackerReturns a list of tracks that have been added since process was called.- Specified by:
getNewTracksin interfacePointTracker<T extends ImageBase<T>>- Parameters:
list- Optional storage for the list of tracks. List is cleared before tracks are added. If null a new list will be declared internally.- Returns:
- List of tracks.
-
spawnTracks
public void spawnTracks()Description copied from interface:PointTrackerAutomatically selects new features in the image to track. Returned tracks must be unique and not duplicates of any existing tracks. This includes both active and inactive tracks. NOTE: This function may or may not also modify the active and inactive lists.- Specified by:
spawnTracksin interfacePointTracker<T extends ImageBase<T>>
-
getImageType
Description copied from interface:PointTrackerInput image type- Specified by:
getImageTypein interfacePointTracker<T extends ImageBase<T>>
-
setCamera
-
setCamera
-