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.
iterated_tiles = enumerate_tiles([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)
Metadata
Release files for ic-slide 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ic_slide-0.0.8.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ic_slide-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / ic_slide-0.0.8.tar.gz
| Download URL | ic_slide-0.0.8.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f5939d81324dabb9d596bba64829d259ac7780d65d0a528ed0d8f98aba80690
|
|
BLAKE2b-256 checksum How to use checksums |
545587053260d32880cce35f8ed959c60a4fad85249121888d711c8d74755534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / ic_slide-0.0.8-py3-none-any.whl
| Download URL | ic_slide-0.0.8-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f57e58496cdb783f58e37ca2edbf9bf1c64cfaa06dc03fe2cca15654664c433
|
|
BLAKE2b-256 checksum How to use checksums |
1174181fc924b070f817b73d5d57d374d919709166977e0e0d109f34cd58fb7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|