public class SparseLAPFrameToFrameTracker extends MultiThreadedBenchmarkAlgorithm implements SpotTracker, Cancelable
Modifier and Type | Field and Description |
---|---|
protected org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> |
graph |
protected Logger |
logger |
protected Map<String,Object> |
settings |
protected SpotCollection |
spots |
processingTime
errorMessage, numThreads
Constructor and Description |
---|
SparseLAPFrameToFrameTracker(SpotCollection spots,
Map<String,Object> settings) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason) |
boolean |
checkInput() |
protected boolean |
checkSettingsValidity(Map<String,Object> settings,
StringBuilder str) |
String |
getCancelReason() |
protected CostFunction<Spot,Spot> |
getCostFunction(Map<String,Double> featurePenalties)
Creates a suitable cost function.
|
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 . |
getProcessingTime
getErrorMessage, getNumThreads, setNumThreads, setNumThreads
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorMessage
getNumThreads, setNumThreads, setNumThreads
protected org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> graph
protected Logger logger
protected final SpotCollection spots
public SparseLAPFrameToFrameTracker(SpotCollection spots, Map<String,Object> settings)
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
protected CostFunction<Spot,Spot> getCostFunction(Map<String,Double> featurePenalties)
featurePenalties
- feature penalties to base costs on. Can be null
.CostFunction
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.protected boolean checkSettingsValidity(Map<String,Object> settings, StringBuilder str)
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.