Update README.md
Browse files
README.md
CHANGED
@@ -45,11 +45,43 @@ This dataset contains 1024x1024 patches of a group of histopathology images take
|
|
45 |
|
46 |
## Usage
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
```python
|
49 |
from datasets import load_dataset
|
|
|
|
|
50 |
|
51 |
dataset = load_dataset("Cilem/histopathology-1024")
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
```
|
54 |
|
55 |
|
|
|
45 |
|
46 |
## Usage
|
47 |
|
48 |
+
- [CAMELYON16](http://gigadb.org/dataset/100439): List of images taken from CAMELYON16 dataset:
|
49 |
+
* `test_001.tif`
|
50 |
+
* `test_002.tif`
|
51 |
+
* `test_003.tif`
|
52 |
+
* `test_004.tif`
|
53 |
+
* `test_005.tif`
|
54 |
+
* `test_006.tif`
|
55 |
+
* `test_007.tif`
|
56 |
+
* `test_008.tif`
|
57 |
+
* `test_009.tif`
|
58 |
+
* `test_010.tif`
|
59 |
+
* `test_011.tif`
|
60 |
+
* `test_012.tif`
|
61 |
+
* `test_013.tif`
|
62 |
+
* `test_014.tif`
|
63 |
+
* `test_015.tif`
|
64 |
+
* `test_016.tif`
|
65 |
+
* `test_017.tif`
|
66 |
+
* `test_018.tif`
|
67 |
+
* `test_019.tif`
|
68 |
+
* `test_020.tif`
|
69 |
+
|
70 |
+
* Create a folder named ***wsi*** and download the images given in the list. Then:
|
71 |
+
|
72 |
```python
|
73 |
from datasets import load_dataset
|
74 |
+
import openslide as ops
|
75 |
+
|
76 |
|
77 |
dataset = load_dataset("Cilem/histopathology-1024")
|
78 |
+
slide_name = dataset['train'][0]['slide_name']
|
79 |
+
resize = dataset['train'][0]['resize']
|
80 |
+
path = os.path.join('wsi', slide_name)
|
81 |
+
slide = ops.OpenSlide(path)
|
82 |
+
patch = slide.read_region((x, y), 0, patch_size)
|
83 |
+
patch = patch.resize(resize)
|
84 |
+
display(patch)
|
85 |
```
|
86 |
|
87 |
|