Skip to main content

iSyntax to raw format converter

Project description

AppVeyor status

iSyntax Converter

Python tool that uses Philips' SDK to write slides in an intermediary raw format.

Requirements

The iSyntax SDK must be downloaded separately from Philips and the relevant license agreement agreed to before any conversion can take place.

As of version 0.4.0, which has a Python 3.6+ requirement, the supported iSyntax SDK versions and environments are as follows:

  • iSyntax SDK 1.2.1 (CentOS 7, Ubuntu 18.04, Windows 10 64-bit)
  • iSyntax SDK 2.0 (CentOS 8, Ubuntu 18.04, Windows 10 64-bit)

Usage

Basic usage is:

isyntax2raw write_tiles /path/to/input.isyntax /path/to/directory.zarr

Please see isyntax2raw write_tiles --help for detailed information.

Output tile width and height can optionally be specified; default values are detailed in --help.

A directory structure containing the pyramid tiles at all resolutions and macro/label images will be created. The default format is Zarr. Additional metadata is written to a JSON file. Be mindful of available disk space, as larger .isyntax files can result in >20 GB of tiles.

Use of the Zarr file type will result in losslessly compressed output. This is the only format currently supported by the downstream raw2ometiff (as of version 0.3.0).

Background color

Any missing tiles are filled with 0 by default, which displays as black. The fill value can be changed using the --fill_color option, which accepts a single integer between 0 and 255 inclusive. Setting --fill_color=255 will cause any missing tiles to display as white.

Performance

This package is highly sensitive to underlying hardware as well as the following configuration options:

  • --max_workers
  • --tile_width
  • --tile_height
  • --batch_size

On systems with significant I/O bandwidth, particularly SATA or NVMe based storage, we have found sharply diminishing returns with worker counts > 4. There are significant performance gains to be had utilizing larger tile sizes but be mindful of the consequences on the downstream workflow. You may find increasing the batch size on systems with very high single core performance to give modest performance gains.

In general, expect to need to tune the above settings and measure relative performance.

License

The iSyntax converter is distributed under the terms of the BSD license. Please see LICENSE.txt for further details.

Areas to improve

  • Currently assumes brightfield (RGB, 8 bits per channel) without really checking the metadata. Probably should check bit depths etc.

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

isyntax2raw-0.4.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

isyntax2raw-0.4.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file isyntax2raw-0.4.0.tar.gz.

File metadata

  • Download URL: isyntax2raw-0.4.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for isyntax2raw-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8cbd45251c3f7a7e7d8519416f4db61d2168f495a2f3f9c4ebee3ba1457f003c
MD5 fdd9483a14159efeb2f026385c94b43a
BLAKE2b-256 76665e95dbf3a660a58f7e80e423a805bc69970ea1b12f6f06498cca879a5026

See more details on using hashes here.

File details

Details for the file isyntax2raw-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: isyntax2raw-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for isyntax2raw-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9652a41355e14f0a89452d9108157934c791b8ab985d16c33d949e9165af2e2b
MD5 33207c6273a59d074400dca451794a73
BLAKE2b-256 c534d91499547687abc958a9725bf681c2e96c46adb957e02373424007d4e245

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