A package for extracting image patches from SVS files and performing color normalization
Project description
WSIdemerger
WSIdemerger is a Python package for extracting image patches from SVS files and performing color normalization.
Installation
You can install the package using pip:
pip install WSIdemerger
Usage
Extract Patches from SVS
from WSIdemerger.Patches_generation import extract_patches_from_svs
input_path = 'path_to_your_svs_file'
output_path = 'path_to_output_directory'
excel_path = 'path_to_output_excel_file'
patch_size = 512
target_magnification = 20
saturation_threshold = 50
extract_patches_from_svs(input_path, output_path, excel_path, patch_size, target_magnification, saturation_threshold)
Normalize Images
from WSIdemerger.Colour_standardisation import normalize_images
input_folder = 'path_to_input_images'
reference_image_path = 'path_to_reference_image'
output_folder = 'path_to_output_directory'
normalize_images(input_folder, reference_image_path, output_folder)
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
wsidemerger-0.1.7.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for WSIdemerger-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ffcd7337046e20e14a2e84e01632555531c0738f758c6e012f06a4f0d37e62 |
|
MD5 | 52ff87a14bee147f60197b9e020f6d33 |
|
BLAKE2b-256 | c7bb00233b2fd273f8ec4830e55bc2fa75dc8734f4cbed680700b7f387f62d78 |