api of coriander slides, communicate with private cloud slides.
Project description
Project description
ic_slide is a sdk wrapper for coriander project of intemedic.it providers slide apis for python projects of internal company. It can not used for public domains.
Installing
Install and update using pip
:
pip install -U ic_slide
A Simple Example
sample of open-slide.
from ic_slide import open_slide
# open a slide with slide id.
slide_id = '4395d816-2832-e7b7-6472-39f9b9f93480'
open_slide(slide_id)
# get metadata of slide.
metadata = slide.metadata
# get tile image (PIL.Image) of slide with x=0, y=0, width=512, height=512
tile = slide.read_region(0,0,512,512)
sample of enumerate tiles to a slide.
from ic_slide import enumerate_tiles
import numpy as np
# enumerate tiles from begin to stop with specified stride and size.
slide_id = '4395d816-2832-e7b7-6472-39f9b9f93480'
iterated_tiles = enumerate_tiles(slide_id, [0,0], [8192,8192], 400, [512,512])
for tile in iterated_tiles:
do_something(tile)
sample of enumerate slide entries of private cloud.
from ic_slide import get_slide_entries
#get all slide entries
slide_entries = get_slide_entries()
for entry in slide_entries:
print(entry.Name)
sample of get distinct slide id of private cloud.
from ic_slide import get_distinct_slide_ids
slide_ids = get_distinct_slide_ids()
for slide_id in slide_ids():
do_something(slide_id)
sample of get annotations of slide entry.
from ic_slide import get_slide_entries, get_slide_entry_annotations
#get all slide entries
slide_entries = get_slide_entries()
for entry in slide_entries:
entry_id = entry.Id
annotations = get_slide_entry_annotations(entry_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ic_slide-1.1.0.tar.gz
(10.9 kB
view details)
Built Distribution
ic_slide-1.1.0-py3-none-any.whl
(12.1 kB
view details)
File details
Details for the file ic_slide-1.1.0.tar.gz
.
File metadata
- Download URL: ic_slide-1.1.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca86da610df500d13f7b4eee09988ca53b6c08ecc4b2119801d30a3f7fc90d2 |
|
MD5 | 4cb976c3530e82af816d4eb2315a7208 |
|
BLAKE2b-256 | a3835ee79f0016b159790f65dce236f12ea0bd93cc3dffe408f46613bdc770ed |
File details
Details for the file ic_slide-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: ic_slide-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f810320bf5b4b18fe887500929cbeb1a7672bbb3346e4cddbc8682937b074858 |
|
MD5 | 5249369d76d664a24bac2045d1e699de |
|
BLAKE2b-256 | 68566b3e609d43cd05a69d3a1d2d34ea188fb84f2a0c2d3ea54093ac011aa035 |