Metadata-Version: 2.1
Name: ic-slide
Version: 0.0.3
Summary: api of conriander slides, communicate with private cloud slides. 
Home-page: https://github.com/pypa/sampleproject
Author: rwecho
Author-email: rwecho@live.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.22.0)
Requires-Dist: Pillow (==6.2.0)
Requires-Dist: numpy (==1.16.5)

## 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`:

```bash
pip install -U ic_slide
```

## A Simple Example

sample of open-slide.

```python
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.

```python
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.

```python
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.

```python
from ic_slide import enumerate_slide_distinct_slide_ids
slide_ids = enumerate_slide_indices()

for slide_id in slide_ids():
    do_something(slide_id)
```


