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.6.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for NiftiResampler-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e16438ceb74953163fe55cca1332caea75b406448ae339e20d9fb78ab52500 |
|
MD5 | a90f609691f8b3a3447e95e3eda64873 |
|
BLAKE2b-256 | 1dc4c45ca1d554f970da22533b579dad90f890bafa7d7eff984ea261102bbdcc |