Skip to main content

Tools for reading dicom files, RT structures, and dose files, as well as tools for converting numpy prediction masks back to an RT structure

Project description

Resample_Class

For resampling nifti images (likely for medical purposes)

Installation

    pip install NiftiResampler

Usage

from NiftiResampler.ResampleTools import ImageResampler, sitk

Resampler = ImageResampler()
base_image = sitk.ReadImage(image_path)
desired_dimensions = (0.975, 0.975, 5.0)
resampled = Resampler.resample_image(input_image_handle=base_image, ref_resampling_handle=None,
                                     output_spacing=(0.975, 0.975, 5), interpolator='Linear', empty_value=-1024)

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

NiftiResampler-0.1.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

NiftiResampler-0.1.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file NiftiResampler-0.1.1.tar.gz.

File metadata

  • Download URL: NiftiResampler-0.1.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for NiftiResampler-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eaaa5be97570402b2bc151e12b330cac37b10c03127f7b56d8619e5f664d41b7
MD5 e87754dfcd73ae38b6d3956074ecbd16
BLAKE2b-256 1cc6398027bcdace41661cf7ca9d51f45d2358f7ea19633c53480f749391fa03

See more details on using hashes here.

File details

Details for the file NiftiResampler-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for NiftiResampler-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 915c4f0a1ceb413f2fd8b6fec143b05c1126680c9029cad0d0c68c1d30424a42
MD5 29bc0cf0fad2a51ce17b228e9540e7a1
BLAKE2b-256 da34ca1e63de692eb0a4c0950b017cb6f38758a3881cef715cb0188933e80d27

See more details on using hashes here.

Supported by

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