Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurable resampling interpolator (#55)
Allow setting the resampling interpolator for preprocessing. Dependency updates: * [`requirements_dev.txt`](diffhunk://#diff-c9c796259f3852b51b531b79cbf07820145088d4f108fb006ab44b15f0b15934L1-R7): Updated versions of `flake8`, `tox`, `pytest`, `pytest-cov`, `mypy`, `build`, and `twine`. * [`setup.py`](diffhunk://#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L8-R8): Incremented the version number from `2.1.8` to `2.1.9`. Interpolation settings: * [`src/picai_prep/preprocessing.py`](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833R39-R48): Added `scan_interpolator` and `lbl_interpolator` attributes to the `PreprocessingSettings` class. * [`src/picai_prep/preprocessing.py`](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833R80): Modified the `resample_img` function to accept an `interpolation` parameter and use it if provided. [[1]](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833R80) [[2]](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833L110-R117) * [`src/picai_prep/preprocessing.py`](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833L257-R270): Updated the `resample_to_first_scan` and `resample_spacing` methods to use the new interpolation settings from `PreprocessingSettings`. [[1]](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833L257-R270) [[2]](diffhunk://#diff-f6c4c6e211631a6dba78bcca09d032a3147c3d8b4949bdca958e80dee0b93833L275-R288)
- Loading branch information