public class BasicObjectTracker extends Object implements ObjectTracker<Rectangle,FImage>
Constructor and Description |
---|
BasicObjectTracker()
Default constructor that will use 50 features and an accuracy of 0.5.
|
BasicObjectTracker(double accuracy)
Constructor that takes the accuracy to use for tracking.
|
BasicObjectTracker(int nFeatures)
Default constructor that takes the number of features to be used.
|
BasicObjectTracker(int nFeatures,
double accuracy)
Constructor that takes the number of features to use and the accuracy
for tracking.
|
Modifier and Type | Method and Description |
---|---|
FeatureList |
getFeatureList()
Returns the list of features that the tracker has been tracking.
|
List<Rectangle> |
initialiseTracking(Rectangle bounds,
FImage img)
Initialise this tracker with a particular area on a particular
image.
|
List<Rectangle> |
trackObject(FImage img)
Reset this tracker using the given image
|
public BasicObjectTracker()
public BasicObjectTracker(int nFeatures)
nFeatures
- The number of features to use.public BasicObjectTracker(double accuracy)
accuracy
- The accuracy to use.public BasicObjectTracker(int nFeatures, double accuracy)
nFeatures
- The number of features to use.accuracy
- The accuracy to usepublic List<Rectangle> trackObject(FImage img)
trackObject
in interface ObjectTracker<Rectangle,FImage>
img
- The image to continue tracking the object within.public List<Rectangle> initialiseTracking(Rectangle bounds, FImage img)
initialiseTracking
in interface ObjectTracker<Rectangle,FImage>
bounds
- The area to trackimg
- The imagepublic FeatureList getFeatureList()
FeatureList