public class JaqamanSegmentCostMatrixCreator extends Object implements CostMatrixCreator<Spot,Spot>, MultiThreaded
Jaqaman et al., 2008 Nature Methods
. It can
also computes the alternative cost value, to use to complete this quadrant
with the 3 others in the final LAP cost matrix.
Warning: we changed and simplified some things compared to the original paper and the MATLAB implementation by Khulud Jaqaman:
alternativeCostFactor x 90% percentile
of all the
non-infinite costs.
Constructor and Description |
---|
JaqamanSegmentCostMatrixCreator(org.jgrapht.Graph<Spot,org.jgrapht.graph.DefaultWeightedEdge> graph,
Map<String,Object> settings)
Instantiates a cost matrix creator for the top-left quadrant of the
segment linking cost matrix.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
double |
getAlternativeCostForSource(Spot source)
Returns the value of the no-linking alternative cost for the specified
source.
|
double |
getAlternativeCostForTarget(Spot target)
Returns the value of the no-linking alternative cost for the specified
target.
|
protected CostFunction<Spot,Spot> |
getCostFunctionFor(Map<String,Double> featurePenalties) |
String |
getErrorMessage() |
int |
getNumThreads() |
long |
getProcessingTime() |
SparseCostMatrix |
getResult() |
List<Spot> |
getSourceList()
Returns the list of sources in the generated cost matrix.
|
List<Spot> |
getTargetList()
Returns the list of targets in the generated cost matrix.
|
boolean |
process() |
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
protected CostFunction<Spot,Spot> getCostFunctionFor(Map<String,Double> featurePenalties)
public SparseCostMatrix getResult()
getResult
in interface OutputAlgorithm<SparseCostMatrix>
public List<Spot> getSourceList()
CostMatrixCreator
getSourceList
in interface CostMatrixCreator<Spot,Spot>
sourceList.get( i )
is
the source corresponding to the row i
in the
generated cost matrix.CostMatrixCreator.getTargetList()
,
OutputAlgorithm.getResult()
public List<Spot> getTargetList()
CostMatrixCreator
getTargetList
in interface CostMatrixCreator<Spot,Spot>
targetList.get( j )
is the target corresponding to the column j
in the
generated cost matrix.CostMatrixCreator.getSourceList()
,
OutputAlgorithm.getResult()
public double getAlternativeCostForSource(Spot source)
CostMatrixCreator
getAlternativeCostForSource
in interface CostMatrixCreator<Spot,Spot>
source
- the source object.CostMatrixCreator.getSourceList()
.public double getAlternativeCostForTarget(Spot target)
CostMatrixCreator
getAlternativeCostForTarget
in interface CostMatrixCreator<Spot,Spot>
target
- the target object. Belongs to the list returned by
CostMatrixCreator.getTargetList()
.public long getProcessingTime()
getProcessingTime
in interface Benchmark
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.