@Test public void testTileNum() { Polygon bbox = createBBox(0, 0, 6400, 6400); { Binarizator bin = new Binarizator(bbox, 256, 256, TILE_WIDTH, TILE_HEIGHT); assertEquals(4 * 4, bin.getActiveTiles().size()); } { Binarizator bin = new Binarizator(bbox, 257, 256, TILE_WIDTH, TILE_HEIGHT); assertEquals(4 * 5, bin.getActiveTiles().size()); } { Binarizator bin = new Binarizator(bbox, 257, 257, TILE_WIDTH, TILE_HEIGHT); assertEquals(5 * 5, bin.getActiveTiles().size()); } }
List<Tile> getActiveTiles() { return activeTiles; }
Binarizator { List<Tile> getActiveTiles() { return activeTiles; } }
Binarizator { List<Tile> getActiveTiles() { return activeTiles; } Binarizator(Polygon bbox, int pxWidth, int pxHeight, int tileWidth, int tileHeight); }
Binarizator { List<Tile> getActiveTiles() { return activeTiles; } Binarizator(Polygon bbox, int pxWidth, int pxHeight, int tileWidth, int tileHeight); boolean isComplete(); boolean add(ROI roi); boolean add(Geometry geometry); }
Binarizator { List<Tile> getActiveTiles() { return activeTiles; } Binarizator(Polygon bbox, int pxWidth, int pxHeight, int tileWidth, int tileHeight); boolean isComplete(); boolean add(ROI roi); boolean add(Geometry geometry);  }