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')
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.3.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for NiftiResampler-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f60d8fc801c10062a2d985db31068c28332d92ef22a15e554fbaf9c7184773 |
|
MD5 | 38a1933cf4a16065c18833faecbd9306 |
|
BLAKE2b-256 | 3a2babe7154f9cf69a952d3c1ae30e9dd6dbc7b065eebb3f6539697126aa2f96 |