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 Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmprotected CostFunction<Spot,Spot> getCostFunctionFor(Map<String,Double> featurePenalties)
public SparseCostMatrix getResult()
getResult in interface OutputAlgorithm<SparseCostMatrix>public List<Spot> getSourceList()
CostMatrixCreatorgetSourceList 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()
CostMatrixCreatorgetTargetList 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)
CostMatrixCreatorgetAlternativeCostForSource in interface CostMatrixCreator<Spot,Spot>source - the source object.CostMatrixCreator.getSourceList().public double getAlternativeCostForTarget(Spot target)
CostMatrixCreatorgetAlternativeCostForTarget in interface CostMatrixCreator<Spot,Spot>target - the target object. Belongs to the list returned by
CostMatrixCreator.getTargetList().public long getProcessingTime()
getProcessingTime in interface Benchmarkpublic void setNumThreads()
setNumThreads in interface MultiThreadedpublic void setNumThreads(int numThreads)
setNumThreads in interface MultiThreadedpublic int getNumThreads()
getNumThreads in interface MultiThreadedCopyright © 2015–2021 Fiji. All rights reserved.