public class SparseLAPSegmentTracker extends Object implements SpotTracker, Benchmark
In this tracking framework, tracking is divided into two steps:
It first extract track segment from a specified graph, and create a cost matrix corresponding to the following events: Track segments can be:
The class itself uses a sparse version of the cost matrix and a solver that can exploit it. Therefore it is optimized for memory usage rather than speed.
Constructor and Description |
---|
SparseLAPSegmentTracker(org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> graph,
Map<String,Object> settings) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
int |
getNumThreads() |
long |
getProcessingTime() |
org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> |
getResult() |
boolean |
process() |
void |
setLogger(Logger logger)
Sets the
Logger instance that will receive messages from this
SpotTracker . |
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
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 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 void setNumThreads()
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
setNumThreads
in interface MultiThreaded
public int getNumThreads()
getNumThreads
in interface MultiThreaded
Copyright © 2015–2021 Fiji. All rights reserved.