Skip to main content

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)

Metadata

Release files for WSIdemerger 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WSIdemerger 0.1.8
File Size Uploaded
wsidemerger-0.1.8.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WSIdemerger 0.1.8
File Interpreter ABI Platform
WSIdemerger-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / wsidemerger-0.1.8.tar.gz

Download URL wsidemerger-0.1.8.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bff09dba410b3fe40e5a7df363ada19e24ce7b81cbd6b3619ad5a6e6945356a7
BLAKE2b-256 checksum
How to use checksums
bacf2c22eb0049b584825713233ac77fb668f7e1c51ea3d22b8c69b47b456a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Release files / WSIdemerger-0.1.8-py3-none-any.whl

Download URL WSIdemerger-0.1.8-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04c1fb0ca3ed942eb457751920306ac732a3283f271dbb2b6728932bc14a5e31
BLAKE2b-256 checksum
How to use checksums
733dfdbb5ae74aaa124fad43e8f326a5c9adbad5459ede4acadd6ae20c57dc27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page