mpicbg.models
Class TileUtil

java.lang.Object
  extended by mpicbg.models.TileUtil

public class TileUtil
extends Object

Author:
Albert Cardona, Stephan Saalfeld

Constructor Summary
TileUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TileUtil

public TileUtil()
Method Detail

generateIndependentGroups

public static final 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. 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.

Parameters:
tiles - The Set of Tile, where each Tile contains a Set of other Tile to whom it is connected with PointMatches.
maxArrayElements - The maximum number of tiles to include in any one of the returned arrays.
Returns:
A Collection of Tile arrays, where, within each array, no one Tile is connected to any of the other Tile of the array.

optimizeConcurrently

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
Throws:
InterruptedException
ExecutionException


Copyright © 2007-2016 Fiji. All Rights Reserved.