- Allow Python >= 3.9
- Only warn on apparent missing slice in
SortedSlices
whenfail_on_max_nonuniformity
false.
- Split out gather DICOM image and paths function from
DICOMDir.from_path
for external use.
- Move non-uniformity check after removing anomalous slices in
DICOMDir
.
- Fix bug in
info
getter inBasicImage
which retrievedaffine
instead ofinfo
.
- Add rudimentary
resample_image
toBasicImage
. - Add optional
info
string toBasicImage
. - Remove duplicate position images in
remove_anomalous_image
method (by default).
- Bump minimum required numpy version to v1.22 since it's required for type annotations.
- Fix bug in
DICOMDir.from_path
where extension not properly formatted with list of paths. - Fix readthedocs build.
- Fix mutation issue; appeared to be because took a view of SimpleITK image instead of a copy
- Only support Python 3.9 (and greater when SimpleITK does so). It takes too long to support old versions of Python, and the primary use case would be to support legacy systems, e.g., for industry.
- Copy when creating new
BasicImage
by default, because (unexpectedly) unsafe otherwise.
- Copy when saving image because mutation occuring that makes it unsafe otherwise
- Revert to use
.view(np.ndarray)
to fix accidental mutation of original array
- Change
to_npz
method inBasicImage
to use__array__
to fix bug when saving slice - Fix various mypy issues in the BasicImage stubs
- Change
to_npz
method inBasicImage
to use.base
to avoid new memory allocation - Add pre-commit hooks and modify files according to them
- Renamed import to pymedio from medio to avoid confusion with medio
- Renamed ImageBase to BasicImage because it can be used by itself
- Fixed another bug in affine matrix calculation in pymedio.dicom for consistency with ITK
- Fixed bug in affine matrix calculation in medio.dicom; now returns same matrix as medio.image
- Change order of encryption/zipping to reduce file size
- Add option to decrypt a zipped file
- Add order option to DICOMImage
- Add numpy load kwargs to
from_npz
class method in ImageBase.
- Make pydicom optional
- Fix bugs in save image
- Lazy load DICOM files to reduce peak memory consumption
- Make DICOM and base image classes (more) immutable
- Make Image classes proper subclasses of ndarray
- Add type hints to support normal numpy operations on Images
- Avoid version collision
- First release on PyPI.