| Modifier and Type | Field and Description |
|---|---|
OverlapProperties |
o |
protected float |
strength |
protected float |
weight |
protected float[] |
weights |
| Constructor and Description |
|---|
PointMatch(Point p1,
Point p2)
Constructor
Create a
PointMatch without weight. |
PointMatch(Point p1,
Point p2,
float weight)
Constructor
Create a
PointMatch with one weight. |
PointMatch(Point p1,
Point p2,
float[] weights)
Constructor
Create a
PointMatch with an Array of weights. |
PointMatch(Point p1,
Point p2,
float[] weights,
float strength)
Constructor
Create a
PointMatch with an Array of weights and a strength. |
PointMatch(Point p1,
Point p2,
float weight,
float strength)
Constructor
Create a
PointMatch with one weight and strength. |
PointMatch(Point p1,
Point p2,
float weight,
OverlapProperties o) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Model model)
|
void |
applyByStrength(Model model,
float amount)
|
protected void |
calculateWeight() |
static ArrayList<PointMatch> |
flip(Collection<PointMatch> matches)
Flip symmetrically, weights remains unchanged.
|
float |
getDistance() |
Point |
getP1() |
Point |
getP2() |
float |
getWeight() |
float[] |
getWeights() |
void |
setWeight(int index,
float weight) |
void |
setWeights(float[] weights) |
public OverlapProperties o
protected float[] weights
protected float weight
protected float strength
public PointMatch(Point p1, Point p2, float[] weights, float strength)
PointMatch with an Array of weights and a strength.
The Array of weights will be copied.
Strength gives the amount of application:
strength = 0 means p1 will not be transferred,
strength = 1 means p1 will be fully transferredp1 - Point 1p2 - Point 2weights - Array of weightsstrength - how much should applyByStrength(Model, float)
affect p1public PointMatch(Point p1, Point p2, float[] weights)
PointMatch with an Array of weights.
The Array of weights will be copied.p1 - Point 1p2 - Point 2weights - Array of weightspublic PointMatch(Point p1, Point p2, float weight)
PointMatch with one weight.p1 - Point 1p2 - Point 2weight - Weightpublic PointMatch(Point p1, Point p2, float weight, OverlapProperties o)
public PointMatch(Point p1, Point p2, float weight, float strength)
PointMatch with one weight and strength.
Strength gives the amount of application:
strength = 0 means p1 will not be transferred,
strength = 1 means p1 will be fully transferredp1 - Point 1p2 - Point 2weight - Weightstrength - how much should applyByStrength(Model, float)
affect p1public PointMatch(Point p1, Point p2)
PointMatch without weight.p1 - Point 1p2 - Point 2public final Point getP1()
public final Point getP2()
public final float[] getWeights()
public final void setWeights(float[] weights)
public final float getWeight()
public final void setWeight(int index,
float weight)
protected final void calculateWeight()
public final float getDistance()
public final void apply(Model model)
model - public final void applyByStrength(Model model, float amount)
model - amount - public static final ArrayList<PointMatch> flip(Collection<PointMatch> matches)
matches - Copyright © 2015–2021 Fiji. All rights reserved.