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 Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmpublic 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 MultiThreadedpublic void setNumThreads(int numThreads)
setNumThreads in interface MultiThreadedpublic int getNumThreads()
getNumThreads in interface MultiThreadedpublic long getProcessingTime()
getProcessingTime in interface Benchmarkpublic void setLogger(Logger logger)
SpotTrackerLogger instance that will receive messages from this
SpotTracker.setLogger in interface SpotTrackerlogger - the logger to echo messages to.public boolean isCanceled()
isCanceled in interface Cancelablepublic void cancel(String reason)
cancel in interface Cancelablepublic String getCancelReason()
getCancelReason in interface CancelableCopyright © 2015–2021 Fiji. All rights reserved.