public class TileUtil extends Object
Constructor and Description |
---|
TileUtil() |
Modifier and Type | Method and Description |
---|---|
static Iterable<Tile<?>[]> |
generateIndependentGroups(Set<Tile<?>> tiles,
int maxArrayElements)
Returns a lazy collection of arrays of
Tile , where none of the tiles of one specific array
are connected to any of the tiles in that same array. |
static void |
optimizeConcurrently(ErrorStatistic observer,
double maxAllowedError,
int maxIterations,
int maxPlateauwidth,
double damp,
TileConfiguration tc,
Set<Tile<?>> tiles,
Set<Tile<?>> fixedTiles,
int nThreads) |
public static final Iterable<Tile<?>[]> generateIndependentGroups(Set<Tile<?>> tiles, int maxArrayElements)
Tile
, where none of the tiles of one specific array
are connected to any of the tiles in that same array.
Assumes that all tiles are not connected to all tiles, otherwise this operation will be very expensive
and the returned arrays will contain a single Tile
each.tiles
- The Set
of Tile
, where each Tile
contains a Set
of other Tile
to whom it is connected with PointMatch
es.maxArrayElements
- The maximum number of tiles to include in any one of the returned arrays.Collection
of Tile
arrays, where, within each array, no one Tile
is connected to any of the other Tile
of the array.public static final void optimizeConcurrently(ErrorStatistic observer, double maxAllowedError, int maxIterations, int maxPlateauwidth, double damp, TileConfiguration tc, Set<Tile<?>> tiles, Set<Tile<?>> fixedTiles, int nThreads) throws InterruptedException, ExecutionException
Copyright © 2015–2021 Fiji. All rights reserved.