public class FeaturePenaltyCostFunction extends Object implements CostFunction<Spot,Spot>
This cost is calculated as follow:
D
is calculated
p
is calculated as
p = 3 × α × |f1-f2| / (f1+f2)
, where α
is the
factor associated to the feature in the map. This expression is such that:
f1
and
f2
are the same;
P = (1 + ∑ p )
C = ( D × P )²
Constructor and Description |
---|
FeaturePenaltyCostFunction(Map<String,Double> featurePenalties) |
Modifier and Type | Method and Description |
---|---|
double |
linkingCost(Spot source,
Spot target)
Returns the cost to link two objects.
|
public double linkingCost(Spot source, Spot target)
CostFunction
linkingCost
in interface CostFunction<Spot,Spot>
source
- the source object.target
- the target object.Copyright © 2015–2021 Fiji. All rights reserved.