Skip to main content

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


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.8.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WSIdemerger-0.1.8-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file wsidemerger-0.1.8.tar.gz.

File metadata

  • Download URL: wsidemerger-0.1.8.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for wsidemerger-0.1.8.tar.gz
Algorithm Hash digest
SHA256 bff09dba410b3fe40e5a7df363ada19e24ce7b81cbd6b3619ad5a6e6945356a7
MD5 ef27eec3ad0ccd547ff59c3a1f136fa5
BLAKE2b-256 bacf2c22eb0049b584825713233ac77fb668f7e1c51ea3d22b8c69b47b456a6e

See more details on using hashes here.

File details

Details for the file WSIdemerger-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: WSIdemerger-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for WSIdemerger-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 04c1fb0ca3ed942eb457751920306ac732a3283f271dbb2b6728932bc14a5e31
MD5 6c517a59fd94b0a6a8b4ee4ba947e998
BLAKE2b-256 733dfdbb5ae74aaa124fad43e8f326a5c9adbad5459ede4acadd6ae20c57dc27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page