Class SquareRegularClustersIntoGrids


public class SquareRegularClustersIntoGrids extends Object
Takes as input a set of unordered regular connected clusters and converts them into ordered grids with known numbers of rows and columns.
  • Constructor Details

    • SquareRegularClustersIntoGrids

      public SquareRegularClustersIntoGrids(int minimumElements)
      Configures class
      minimumElements - The minimum number of elements which must be in a cluster for it to be accepted
  • Method Details

    • process

      public void process(List<List<SquareNode>> clusters)
      Converts the set of provided clusters into ordered grids.
      clusters - List of clustered nodes
    • getGrids

      public List<SquareGrid> getGrids()
      Returns a list of all the square grids it found
    • isVerbose

      public boolean isVerbose()
    • setVerbose

      public void setVerbose(boolean verbose)