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
omnipath_slide-1.0.0.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file omnipath_slide-1.0.0.tar.gz
.
File metadata
- Download URL: omnipath_slide-1.0.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821bffd30a924dd038491cae06025c9ceead34b0df2597824bdfc4509bc4e3fd |
|
MD5 | 50848dc4aa77a2f5e09d7768fb883552 |
|
BLAKE2b-256 | bb1ffde707e5101d84e541d7908d8f2adf65bc329d242f2deb7e54d8ee164fe2 |
File details
Details for the file omnipath_slide-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: omnipath_slide-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82cc46097b40948891067d6ed2d35b1ba6499659dad3f0649c8512cdec307b95 |
|
MD5 | 74c5a93332b8eabed81704ce8ff53f07 |
|
BLAKE2b-256 | 5baacc696ff0c351523b64c54527e96a93265f917e6ecad1937505da706a6133 |