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 images and annotations for deep learning
Below is an example of turning a cube on a high resolution image into a low resolution image
pip install NiftiResampler
from NiftiResampler.ResampleTools import ImageResampler
Resampler = ImageResampler()
image = np.zeros([68, 512,512])
image[30:40,126:256,125:256] = 1
resampled = Resampler.resample_image(image,input_spacing=(0.975/2,0.975/2,2.5),output_spacing=(0.975,0.975,5),is_annotation=True)
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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for NiftiResampler-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f57bb0aca3e99bfa2316400e4bc75762c5a1fc2b7f78c95d3cf633fe4753fc3 |
|
MD5 | 5e3286991bcd28f0788d28ac7b0ff90b |
|
BLAKE2b-256 | 450eeecb070a3ac96347568ea3576abcda6f4cdfa9a59fa5996490725320eeaf |