Preprocessing module for large histological images.
Project description
HistoPrep
Preprocessing large histological slides for machine learning made easy!
Description
This module allows you to cut and preprocess large histological slides. Some of the features include:
- Cut large whole slide image (WSI) into tiles of desired size.
- Dearray individual tissue microarray (TMA) spots from a large slide image.
- Easily detect and discard blurry images or images with artifacts after cutting.
- Save a lot of tears while preprocessing images.
Installation
First install OpenCV
and OpenSlide
on your system (instructions here and here).
# install as a module
pip install histoprep
# install as an executable
git clone https://github.com/jopo666/HistoPrep
cd HistoPrep
pip install -r requirements.txt
Usage
HistoPrep can be used either as a module...
import histoprep as hp
cutter = hp.Cutter('/path/to/slide', width=512, overlap=0.25)
metadata = cutter.save('/path/to/output_folder')
or as an excecutable!
python3 HistoPrep cut ./input_dir ./output_dir --width 512 --overlap 0.25 --img_type jpeg
Documentation
Documentation can be found here!
Examples
Detailed examples with best practices:
- Coming soon!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
histoprep-0.0.1.1.tar.gz
(20.5 kB
view hashes)
Built Distribution
Close
Hashes for histoprep-0.0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab85b7f6cd78cfc329ce1d2ddbc196042f221df2a5690bb9444410a395b7e2e1 |
|
MD5 | 32b206893f6851247a67a21323cea07b |
|
BLAKE2b-256 | 183fce4d4b3a34ddba09ee93de61c7777f4b8cee5fd3ef11c1f4ca63fa4d775f |