public static class PFMComparator.UniformBorderWrapper extends PFMComparator.PFMDistance
PFMComparator.PFMDistance
and pads the considered PFMs with uniformly distributed positions.Constructor and Description |
---|
PFMComparator.UniformBorderWrapper(PFMComparator.PFMDistance inner)
Creates a new
PFMComparator.UniformBorderWrapper for a given PFMComparator.PFMDistance . |
Modifier and Type | Method and Description |
---|---|
protected double |
getDistance(double[][] pfm1,
double[][] pfm2,
int l1,
int l2)
Computes the mean distance between the overlapping parts of
pfm1 and pfm2 starting at the offsets
l1 and l2 , respectively. |
compare, getDistance
public PFMComparator.UniformBorderWrapper(PFMComparator.PFMDistance inner)
PFMComparator.UniformBorderWrapper
for a given PFMComparator.PFMDistance
.inner
- the internal PFMComparator.PFMDistance
to be paddedprotected double getDistance(double[][] pfm1, double[][] pfm2, int l1, int l2)
PFMComparator.PFMDistance
pfm1
and pfm2
starting at the offsets
l1
and l2
, respectively.getDistance
in class PFMComparator.PFMDistance
pfm1
- the first PFMpfm2
- the second PFMl1
- the offset for the first PFMl2
- the offset for the second PFM