Metadata-Version: 2.1
Name: wsidicom-data
Version: 0.1.0
Summary: Test data for wsidicom
Home-page: https://github.com/imi-bigpicture/wsidicom-data
License: Apache-2.0
Author: Erik O Gabrielsson
Author-email: erik.o.gabrielsson@sectra.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: imagecodecs
Provides-Extra: rle
Requires-Dist: imagecodecs (>=2023.9.18,<2024.0.0) ; extra == "imagecodecs"
Requires-Dist: pylibjpeg-rle (>=1.3.0,<2.0.0) ; extra == "rle"
Requires-Dist: wsidicom (>=0.14.0)
Project-URL: Repository, https://github.com/imi-bigpicture/wsidicom-data
Description-Content-Type: text/markdown

# *wsidicom-data*

Test data for [wsidicom](https://github.com/imi-bigpicture/wsidicom).

## Install

Install from pypi:

```terminal
pip install wsidicom-data
```

## Re-creating encoded test data

```terminal
python .\wsidicom_data\create_encoded_test_files.py
```

## Accessing test data

```python
from wsidicom_data import TestData, EncodedTestData, defined_encoder_settings

test_tile_path = TestData.get_test_tile_path()

settings = defined_encoder_settings[0]
encoded_test_file_path = EncodedTestData.get_filepath_for_encoder_settings(settings)

```

## Description of data

* `test_tile.png` is extracted from `CMU-1-Small-Region.svs` in the [OpenSlide test data set](https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/)
* Encoded test data is created from the `test_tile.png` using different encoders. The target transfer syntax, color, and bits per pixel is given in the filename.

