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)
Metadata
Release files for ic-slide 0.2.0
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.2.0.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ic_slide-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / ic_slide-0.2.0.tar.gz
| Download URL | ic_slide-0.2.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56b373779e9614bbbba2a8780a97216557a940f917009c5e4cb506672bed4202
|
|
BLAKE2b-256 checksum How to use checksums |
6060e455d2a1d12d7aaedaaeb442ada56b086c9202f08551a145fcccb167048d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.8
|
Release files / ic_slide-0.2.0-py3-none-any.whl
| Download URL | ic_slide-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fff6b79da1a25328c4f4f7e9b3a03f20d71854fc7e2d0561ed3f36c961b5a9c
|
|
BLAKE2b-256 checksum How to use checksums |
745596cd9cd7dce3da465964857670cc4340c84b5450a38371b4e5326d0708cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.8
|