public class TileConfiguration extends Object
Add all tiles that build a common interconnectivity graph to one configuration, fix at least one of the tiles and optimize the configuration.
Constructor and Description |
---|
TileConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addTile(Tile t)
Add a single tile.
|
void |
addTiles(Collection<Tile> t)
Add a collection of tiles.
|
void |
fixTile(Tile t)
Fix a single tile.
|
double |
getAvgError() |
ArrayList<Tile> |
getFixedTiles() |
double |
getMaxError() |
double |
getMinError() |
ArrayList<Tile> |
getTiles() |
Tile |
getWorstError() |
void |
optimize(float maxAllowedError,
int maxIterations,
int maxPlateauwidth)
Minimize the displacement of all correspondence pairs of all tiles.
|
public final double getMinError()
public final double getMaxError()
public final Tile getWorstError()
public final double getAvgError()
public final void addTile(Tile t)
t
- public final void addTiles(Collection<Tile> t)
t
- public final void fixTile(Tile t)
t
- public void optimize(float maxAllowedError, int maxIterations, int maxPlateauwidth) throws NotEnoughDataPointsException
maxAllowedError
- do not accept convergence if error is > max_errormaxIterations
- stop after that many iterations even if there was
no minimum foundmaxPlateauwidth
- convergence is reached if the average slope in
an interval of this size is 0.0 (in double accuracy). This prevents
the algorithm from stopping at plateaus smaller than this value.NotEnoughDataPointsException
Copyright © 2015–2021 Fiji. All rights reserved.