https://github.com/Radiomics/pyradiomics
Revision 0f6a0d1f87370344d43afc4cea21e30430090177 authored by Joost van Griethuysen on 04 September 2017, 15:37:48 UTC, committed by Joost van Griethuysen on 06 September 2017, 14:49:00 UTC
When resampling, allow the output spacing for any dimension to be set to 0 (the parameter 'resampledPixelSpacing' still needs to be a sequence of 3 elements, but the value of any element can be 0). Doing so will enable 'preserving' the original spacing, as 0 values are replaced with the original spacing for that dimension (original spacing of the mask). This way, it is possible to only resample in-plane (by setting the out-of-plane output spacing to 0). Additionally, move the check between original and resampled spacing to after the size check (no resampling over dimensions for which bounding box size = 1) and build in a tolerance (1e-5 + 1e-8 * abs(resampledspacing)). Finally, fix data type for resampled spacing in the validation schema for parameter files (change from integer to float).
1 parent 26b9ef3
Tip revision: 0f6a0d1f87370344d43afc4cea21e30430090177 authored by Joost van Griethuysen on 04 September 2017, 15:37:48 UTC
ENH: Allow a 0 value for output spacing when resampling
ENH: Allow a 0 value for output spacing when resampling
Tip revision: 0f6a0d1
File | Mode | Size |
---|---|---|
.circleci | ||
bin | ||
data | ||
docs | ||
examples | ||
hooks | ||
notebooks | ||
radiomics | ||
tests | ||
.circleci-matrix.yml | -rw-r--r-- | 919 bytes |
.dockerignore | -rw-r--r-- | 6 bytes |
.editorconfig | -rw-r--r-- | 440 bytes |
.flake8 | -rw-r--r-- | 1.1 KB |
.gitattributes | -rw-r--r-- | 35 bytes |
.gitignore | -rw-r--r-- | 763 bytes |
.travis.yml | -rw-r--r-- | 710 bytes |
CHANGES.rst | -rw-r--r-- | 23.6 KB |
CONTRIBUTING.rst | -rw-r--r-- | 5.8 KB |
Dockerfile | -rw-r--r-- | 3.0 KB |
LICENSE.txt | -rw-r--r-- | 1.4 KB |
MANIFEST.in | -rw-r--r-- | 395 bytes |
README.md | -rw-r--r-- | 6.4 KB |
appveyor.yml | -rw-r--r-- | 1.2 KB |
circle.yml | -rw-r--r-- | 580 bytes |
requirements-dev.txt | -rw-r--r-- | 101 bytes |
requirements-setup.txt | -rw-r--r-- | 13 bytes |
requirements.txt | -rw-r--r-- | 77 bytes |
scikit-ci.yml | -rw-r--r-- | 1.7 KB |
setup.cfg | -rw-r--r-- | 182 bytes |
setup.py | -rw-r--r-- | 3.1 KB |
versioneer.py | -rw-r--r-- | 67.0 KB |
Computing file changes ...