Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
waliens committed Sep 11, 2020
1 parent 7b45e2d commit f1be461
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions sldc_cytomine/image_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,16 +375,3 @@ def _tile_path(self, tile, alpha=False):
if alpha:
basename = "{}_alpha".format(basename)
return os.path.join(self._working_path, "{}.png".format(basename))


if __name__ == "__main__":
with Cytomine.connect("https://research.cytomine.be", "8d6ff35f-b894-4dbf-88ec-92110568331c", "af968cb0-70d0-470b-a804-0505ed8e3e7a", verbose=0):
slide = CytomineSlide(77150623, zoom_level=5)
slide = slide.window((200, 200), 100000, 10000)
builder = CytomineTileBuilder(working_path="C:/Git/cytomine/sldc-cytomine/sldc_cytomine/tmp", n_jobs=2)
topology = TileTopology(slide, builder, max_width=2000, max_height=2000, overlap=3)

for tile in topology:
image = tile.np_image
cv2.imwrite("tile.png", image)
print(image.shape)

0 comments on commit f1be461

Please sign in to comment.