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'
slide_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(np.array([0,0], np.array([8192,8192]), 400, np.array([512,512]))
for tile in iterated_tiles:
do_something(tile)
sample of enumerate slide indices of private cloud.
from ic_slide import enumerate_slide_indices
#enumerate all slide indices
slide_indices = enumerate_slide_indices()
for index in slide_indices:
print(index['Name'])
sample of enumerate distinct slide id of private cloud.
from ic_slide import enumerate_slide_distinct_slide_ids
slide_ids = enumerate_slide_indices()
for slide_id in slide_ids():
do_something(slide_id)
Metadata
Release files for ic-slide 0.0.3
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.3.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ic_slide-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.7 kB
Release files / ic_slide-0.0.3.tar.gz
| Download URL | ic_slide-0.0.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed54d2e114e7c46ad378b18455bb14751f7c926de692f8f76b8b9c955daa3097
|
|
BLAKE2b-256 checksum How to use checksums |
83acf572e2806f02c484a50acbc7b15e49f1719eac0a4d9266cef9f015c38503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
|
Release files / ic_slide-0.0.3-py3-none-any.whl
| Download URL | ic_slide-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5d5e5dfcfb4b702de2f107d7cc91c238f3c5c46d7947931a08da98bf507d645
|
|
BLAKE2b-256 checksum How to use checksums |
809ea2a6c3e04273175838466bba692aa5078fd7fd9b393b1f5afcbc2a400dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
|