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
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
NiftiResampler-0.0.7.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for NiftiResampler-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e75ba312b83ad6f0fc29c8f0f07edb3b1f1aa8135955e2fa5702568380ccd68 |
|
MD5 | f3f3ab5ed201c979a5cbba936a217faf |
|
BLAKE2b-256 | be5a7d7c9a5380022bd53b2d9b4874513b59b274eecba75ded3f7c88fbcf8c87 |