public class KalmanTracker extends Object implements SpotTracker, Benchmark, Cancelable
Constructor and Description |
---|
KalmanTracker(SpotCollection spots,
double maxSearchRadius,
int maxFrameGap,
double initialSearchRadius) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason) |
boolean |
checkInput() |
String |
getCancelReason() |
String |
getErrorMessage() |
int |
getNumThreads() |
SpotCollection |
getPredictions()
Returns the saved predicted state as a
SpotCollection . |
long |
getProcessingTime() |
org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> |
getResult() |
boolean |
isCanceled() |
boolean |
process() |
void |
setLogger(Logger logger)
Sets the
Logger instance that will receive messages from this
SpotTracker . |
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
void |
setSavePredictions(boolean doSave)
Sets whether the tracker saves the predicted states.
|
public KalmanTracker(SpotCollection spots, double maxSearchRadius, int maxFrameGap, double initialSearchRadius)
spots
- the spots to track.maxSearchRadius
- maxFrameGap
- initialSearchRadius
- public org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> getResult()
getResult
in interface OutputAlgorithm<org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge>>
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public SpotCollection getPredictions()
SpotCollection
.setSavePredictions(boolean)
public void setSavePredictions(boolean doSave)
doSave
- if true
, the predicted states will be saved.getPredictions()
public void setNumThreads()
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
setNumThreads
in interface MultiThreaded
public int getNumThreads()
getNumThreads
in interface MultiThreaded
public long getProcessingTime()
getProcessingTime
in interface Benchmark
public void setLogger(Logger logger)
SpotTracker
Logger
instance that will receive messages from this
SpotTracker
.setLogger
in interface SpotTracker
logger
- the logger to echo messages to.public boolean isCanceled()
isCanceled
in interface Cancelable
public void cancel(String reason)
cancel
in interface Cancelable
public String getCancelReason()
getCancelReason
in interface Cancelable
Copyright © 2015–2021 Fiji. All rights reserved.